]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/ChangeLog
ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen.
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
3fc63c15
JQ
12003-12-15 Jerry Quinn <jlquinn@optonline.net>
2
3 * config/os/aix/ctype_noninline.h,
4 config/os/bsd/freebsd/ctype_noninline.h,
5 config/os/bsd/netbsd/ctype_noninline.h,
6 config/os/djgpp/ctype_noninline.h,
7 config/os/generic/ctype_noninline.h,
8 config/os/gnu-linux/ctype_noninline.h,
9 config/os/hpux/ctype_noninline.h,
10 config/os/irix/irix5.2/ctype_noninline.h,
11 config/os/irix/irix6.5/ctype_noninline.h,
12 config/os/mingw32/ctype_noninline.h,
13 config/os/newlib/ctype_noninline.h,
14 config/os/qnx/qnx6.1/ctype_noninline.h,
15 config/os/solaris/solaris2.5/ctype_noninline.h,
16 config/os/solaris/solaris2.6/ctype_noninline.h,
17 config/os/solaris/solaris2.7/ctype_noninline.h,
18 config/os/vxworks/ctype_noninline.h,
19 config/os/windiss/ctype_noninline.h (ctype): Initialize
20 _M_narrow, _M_widen.
21 * include/bits/locale_facets.h (_M_widen, _M_widen_ok,
22 _M_narrow, _M_narrow_ok): New.
23 (widen, narrow): Use tables to bypass virtual functions.
24 (_M_widen_init, _M_narrow_init): New.
25
91daef58
CW
262003-12-15 Carlo Wood <carlo@alinoe.com>
27
28 * include/bits/ios_base.h (Init::_S_initialized): Change into
29 declaration.
30 * src/ios_init.cc (Init::_S_initialized): Add definition.
31
3fe13738
BK
322003-12-15 Benjamin Kosnik <bkoz@redhat.com>
33
34 PR libstdc++/12658
35 * include/Makefile.am (bits_headers): Add concurrence.h.
36 * include/Makefile.in: Regenerated.
37 * include/bits/concurrence.h: New.
38 * src/locale_init.cc: Use it.
39 (locale::locale): Lock critical regions.
40 (locale::global): Same.
41
1313d87f
BK
422003-12-15 Benjamin Kosnik <bkoz@redhat.com>
43
44 * include/bits/basic_string.h: Change _*_references to _*_refcount.
45 * include/bits/locale_classes.h: Same.
46 * src/locale.cc: Same.
47 * src/locale_name.cc: Same.
48 * src/locale_init.cc: Same.
49
fa972243
BK
502003-12-15 Benjamin Kosnik <bkoz@redhat.com>
51
52 PR libstdc++/12855
53 * include/bits/ios_base.h (Init::_S_ios_base_init): Change to
54 _S_refcount, make atomic.
55 * src/ios.cc: Adjust definition.
56 * src/ios_init.cc (ios_base::Init::Init): Use __exchange_and_add,
57 and __atomic_add.
58 (ios_base::Init::~Init): Same.
59 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
60 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
61
ca13fb7f
PC
622003-12-15 Paolo Carlini <pcarlini@suse.de>
63
64 * include/bits/locale_facets.tcc (num_get::do_get(bool&)):
65 Fail as soon as the begins of both truename and falsename
66 stop to match; always leave __beg one position beyond the
67 last char successfully matched.
68 * testsuite/22_locale/num_get/get/char/8.cc: New.
69 * testsuite/22_locale/num_get/get/wchar_t/8.cc: Likewise.
70
712003-12-15 Paolo Carlini <pcarlini@suse.de>
72
73 * include/bits/locale_facets.h (_M_widen): Reserve space
74 for all the possible widened chars.
75 * config/locale/generic/ctype_members.cc (_M_initialize_ctype):
76 Compute at construction time all the possible widened chars.
77 (do_widen): Tweak, simplify.
78 * config/locale/gnu/ctype_members.cc: Likewise.
79 * testsuite/performance/narrow_widen_wchar_t.cc: Add tests
80 for the array versions.
81
e3c0c098
PC
822003-12-12 Paolo Carlini <pcarlini@suse.de>
83 Benjamin Kosnik <bkoz@redhat.com>
84
85 PR libstdc++/13341
86 * include/bits/locale_facets.h (ctype<wchar_t>): Declare
87 _M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
88 * src/ctype.cc (ctype<wchar_t>::ctype(size_t),
89 ctype<wchar_t>::ctype(__c_locale, size_t)): Use
90 _M_initialize_ctype to fill _M_narrow and _M_widen.
91 (ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
92 Likewise.
93 * config/locale/generic/ctype_members.cc (do_narrow, do_widen)
94 Use _M_narrow and _M_widen when possible, instead of calling
95 wctob and btowc, respectively.
96 (_M_initialize_ctype): Define, it fills at construction time
97 _M_narrow and _M_widen.
98 * config/locale/gnu/ctype_members.cc: Likewise.
99 * testsuite/performance/narrow_widen_wchar_t.cc: New.
100
a7bc3cdc
JW
1012003-12-12 Jonathan Wakely <redi@gcc.gnu.org>
102
103 * docs/html/faq/index.txt: Regenerate after adding <link> tags.
104
cbc67955
NF
1052003-12-11 Neil Ferguson <nferguso@eso.org>
106 Paolo Carlini <pcarlini@suse.de>
107
108 * include/bits/basic_string.tcc (reserve): Allow shrink-to-fit.
109 * testsuite/21_strings/basic_string/capacity/1.cc: Tweak.
110 * testsuite/21_strings/basic_string/capacity/char/1.cc: Ditto.
111 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Ditto.
112
645112dd
BK
1132003-12-10 Benjamin Kosnik <bkoz@redhat.com>
114
115 PR libstdc++/6243
116 * testsuite/lib/libstdc++.exp (v3-init): Add
117 original_ld_library_path, calculate ld_library path, set
118 LD_LIBRARY_PATH to both. Based on libjava.exp.
119
9f503dd3
BK
1202003-12-10 Benjamin Kosnik <bkoz@redhat.com>
121 Alexandre Oliva <aoliva@redhat.com>
122
123 PR libstdc++/11612
124 * testsuite/Makefile.am (GLIBCXX_DIR): New.
125 (GLIBGCC_DIR): New.
126 (CXXLINK): Use both with -R so libtool links the correct libs.
127
3090572c
PC
1282003-12-10 Paolo Carlini <pcarlini@suse.de>
129
130 PR libstdc++/13217
131 * include/bits/fstream.tcc (underflow): Deal gracefully with
132 read errors: throw ios_base::failure.
133
35d6801e
BK
1342003-12-10 Benjamin Kosnik <bkoz@redhat.com>
135
136 PR libstdc++/10063
137 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Sync.
138 * testsuite/ext/stdio_filebuf/char/10063-1.cc: New.
139 * testsuite/ext/stdio_filebuf/char/10063-2.cc: New.
140
e8c5fc66
PC
1412003-12-10 Paolo Carlini <pcarlini@suse.de>
142
143 * include/bits/locale_facets.tcc (num_put::do_put(void*)):
144 Remove the try/catch, not necessary.
145
9877afe8
PC
1462003-12-10 Paolo Carlini <pcarlini@suse.de>
147
148 * testsuite/22_locale/locale/cons/12438.cc: Tweak memory
149 limit and iterations to avoid spurious failures on some
150 64 bit machines.
151
5ec3f566
BK
1522003-12-09 Benjamin Kosnik <bkoz@redhat.com>
153
154 * config/linker-map.gnu: Remove private ios_base members from
155 export list.
156
157 * config/cpu/alpha/atomicity.h: Consistently format.
158 * config/cpu/cris/atomicity.h: Same.
159 * config/cpu/generic/atomicity.h: Same.
160 * config/cpu/hppa/atomicity.h: Same.
161 * config/cpu/i386/atomicity.h: Same.
162 * config/cpu/i486/atomicity.h: Same.
163 * config/cpu/ia64/atomicity.h: Same.
164 * config/cpu/m68k/atomicity.h: Same.
165 * config/cpu/mips/atomicity.h: Same.
166 * config/cpu/powerpc/atomicity.h: Same.
167 * config/cpu/s390/atomicity.h: Same.
168 * config/cpu/sparc/atomicity.h: Same.
169
86025553
BK
1702003-12-09 Benjamin Kosnik <bkoz@redhat.com>
171
172 PR libstdc++/13296
173 * acinclude.m4 (GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS): Remove.
174 * aclocal.m4: Regenerate.
175 * configure.ac: Remove call to GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS.
176 * conigure: Regenerate.
177 * src/Makefile.am (libstdc___la_LDFLAGS): Remove LIBUNWIND_FLAGS.
178 * src/Makefile.in: Regenerate.
179 * docs/html/17_intro/configury.html: Modify.
180
7c1ca569
PC
1812003-12-09 Paolo Carlini <pcaelini@suse.de>
182
183 * include/bits/demangle.h (struct implementation_details):
184 Keep in comments the names of the unused parameters.
185
015fa971
PC
1862003-12-09 Paolo Carlini <pcaelini@suse.de>
187
188 * include/bits/demangle.h (struct implementation_details):
189 Fix unused parameters warning.
190
1f3adac2
PC
1912003-12-09 Paolo Carlini <pcarlini@suse.de>
192
193 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
194 Slightly streamline the code dealing with overflows and the
195 parsing of the sign.
196
fa30fe72
BI
1972003-12-09 Bernardo Innocenti <bernie@develer.com>
198
199 * include/ext/algorithm, include/ext/debug_allocator.h,
200 include/ext/enc_filebuf.h, include/ext/functional,
201 include/ext/hash_fun.h, include/ext/hash_map, include/ext/hash_set,
202 include/ext/hashtable.h, include/ext/iterator,
203 include/ext/malloc_allocator.h, include/ext/memory,
204 include/ext/mt_allocator.h, include/ext/numeric,
205 include/ext/pod_char_traits.h, include/ext/pool_allocator.h,
206 include/ext/rb_tree, include/ext/rope, include/ext/ropeimpl.h,
207 include/ext/slist, include/ext/stdio_filebuf.h,
208 include/ext/stdio_sync_filebuf.h: Remove trailing whitespace.
209
526da49c
BI
2102003-12-09 Bernardo Innocenti <bernie@develer.com>
211
212 * include/debug/bitset, include/debug/debug.h, include/debug/deque,
213 include/debug/formatter.h, include/debug/hash_map.h,
214 include/debug/hash_multimap.h, include/debug/hash_multiset.h,
215 include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
216 include/debug/map.h, include/debug/multimap.h,
217 include/debug/multiset.h, include/debug/safe_base.h,
218 include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
219 include/debug/safe_sequence.h, include/debug/set.h,
220 include/debug/string, include/debug/vector: Remove trailing whitespace.
221
23131008
BI
2222003-12-09 Bernardo Innocenti <bernie@develer.com>
223
224 * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
225 include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
226 include/c_compatibility/string.h, include/c_compatibility/time.h,
227 include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
228 Remove trailing whitespace.
229
7dd8177f
BI
2302003-12-09 Bernardo Innocenti <bernie@develer.com>
231
232 * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
233 include/c_std/std_cctype.h, include/c_std/std_cmath.h,
234 include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
235 include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
236 include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
237 Remove trailing whitespace.
238
7b74e24e
BI
2392003-12-09 Bernardo Innocenti <bernie@develer.com>
240
241 * include/c/std_cctype.h, include/c/std_cmath.h,
242 include/c/std_cstdlib.h include/c/std_cwchar.h,
243 include/c/std_cwctype.h: Remove trailing whitespace.
244
e64738b3
BI
2452003-12-09 Bernardo Innocenti <bernie@develer.com>
246
247 * include/backward/algo.h, include/backward/algobase.h,
248 include/backward/alloc.h, include/backward/complex.h,
249 include/backward/defalloc.h, include/backward/function.h,
250 include/backward/iterator.h, include/backward/new.h,
251 include/backward/ostream.h, include/backward/queue.h,
252 include/backward/rope.h, include/backward/stream.h,
253 include/backward/streambuf.h, include/backward/strstream,
254 include/backward/tempbuf.h, include/backward/tree.h,
255 include/backward/vector.h: Remove trailing whitespace.
256
0fa96a60
PC
2572003-12-08 Paolo Carlini <pcarlini@suse.de>
258
259 * config/locale/generic/c_locale.cc (__convert_to_v(long&),
260 __convert_to_v(unsigned long&), __convert_to_v(long long&),
261 __convert_to_v(unsigned long long&): Remove.
262 (__convert_to_v(float&), __convert_to_v(double&),
263 __convert_to_v(long double&)): Remove last unused parameter.
264 * config/locale/gnu/c_locale.cc: Likewise.
265 * include/bits/locale_facets.h: Likewise.
266 (num_get::_M_extract_int): Update declaration.
267 (class __num_base): Tweak _S_ie and _S_iE according to the
268 _S_atoms_in changes.
269 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
270 Provide directly the final _ValueT, not a string: accumulate
271 the result checking for overflow at each digit.
272 (num_get::do_get(bool&), num_get::do_get(long&),
273 num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
274 num_get::do_get(unsigned long&), num_get::do_get(long long&),
275 num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
276 Use the new _M_extract_int, simplify.
277 * src/locale-inst.cc (num_get::_M_extract_int(long&),
278 num_get::_M_extract_int(unsigned short&),
279 num_get::_M_extract_int(unsigned int&),
280 num_get::_M_extract_int(unsigned long&),
281 num_get::_M_extract_int(long long&),
282 num_get::_M_extract_int(unsigned long long&): Instantiate.
283 * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
284 the chars in the natural order: abcdefABCDEF.
285
09755a85
DM
2862003-12-08 David S. Miller <davem@redhat.com>
287
288 PR libstdc++/12496
289 * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
290 Extend increment to _Atomic_word before giving to assembler.
291
57616df1
BK
2922003-12-06 Benjamin Kosnik <bkoz@redhat.com>
293
294 * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
295 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
296
e80213d2
BK
2972003-12-06 Benjamin Kosnik <bkoz@redhat.com>
298
299 PR libstdc++/11691
300 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
301 Remove __del argument to file descriptor constructor.
302 * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
303 bool argument.
304 * config/io/basic_file_stdio.cc: Same.
305
42134429
BK
3062003-12-05 Benjamin Kosnik <bkoz@redhat.com>
307
308 PR libstdc++/13189
309 * include/ext/enc_filebuf.h: Fix.
310 * include/bits/fstream.tcc: Tweak formatting.
311 * include/bits/postypes.h: Same.
312 * include/bits/sstream.tcc: Same.
313 * include/bits/streambuf.tcc: Same.
314 * testsuite/ext/stdio_filebuf.cc: Split.
315 * testsuite/ext/stdio_filebuf_2.cc: Split.
316 * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
317 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
318 * testsuite/ext/enc_filebuf/char/13189.cc: New.
319 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
320 * testsuite/ext/stdio_filebuf/char/1.cc: New.
321 * testsuite/ext/stdio_filebuf/char/2.cc: New.
322 * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
323 * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
324 * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
325 * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
326 * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
327 * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
328 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
329 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
330 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
331 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
332
69f73bd3
CW
3332003-12-05 Carlo Wood <carlo@alinoe.com>
334
335 PR libstdc++/13045
336 * bits/demangle.h
337 namespace __gnu_cxx::demangler
338 (enum substitution_nt): Removed trailing comma.
339 (implementation_details): Added.
340 (session<Allocator>::M_implementation_details): Added.
341 (session<Allocator>::session): Pass implementation_details.
342 (session<Allocator>::decode_encoding): Same.
343 (session<Allocator>::decode_real): Added.
344 (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
345 _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
346 _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
347 _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
348 implementation_details equivalent.
349 (session<Allocator>::decode_expression):
350 Use M_implementation_details instead of macros. Add extra parentheses
351 around 'larger than' operator in expressions in template arguments.
352 (session<Allocator>::decode_bare_function_type): Idem.
353 (session<Allocator>::decode_literal):
354 Idem, and call decode_real for floating literals.
355 (session<Allocator>::decode_type_with_postfix): Put the postfix
356 of the return type of (member) functions after the function
357 instead of after the return type. Also, put a space after the
358 prefix of qualified function pointers: "int (* const<space>".
359 * src/demangle.cc: include most dependent header file first.
360 * testsuite/demangle/regression/cw-16.cc: Updated two
361 and added three tests.
362
82fa4538
BK
3632003-12-04 Benjamin Kosnik <bkoz@redhat.com>
364
365 PR libstdc++/13284
366 * include/bits/stl_algo.h (__random_number): Remove.
367 (random_shuffle): Use rand, as permitted by DR 395.
368 * include/ext/algorithm: Same.
369 * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
370 * acconfig.h: Same.
371 * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
372 * config.h.in: Regenerated.
373 * configure: Same.
374 * aclocal.m4: Same.
375
7f1156ed
PC
3762003-12-04 Paolo Carlini <pcarlini@suse.de>
377
378 PR libstdc++/12653
379 * include/std/std_bitset.h (operator>>): Implement resolution
380 of DR 303 [WP]: use widen('0') and widen('1').
381 * docs/html/ext/howto.html: Add an entry for DR 303.
382
383 * include/std/std_bitset.h (operator>>): Implement the common
384 requirements of formatted input functions (27.6.1.2.1).
385
386 * include/std/std_bitset.h (operator>>): Set the failbit when
387 nothing was extracted and _Nb != 0.
388 * testsuite/23_containers/bitset/input/1.cc: New.
389
3259561c
PC
3902003-12-03 Paolo Carlini <pcarlini@suse.de>
391
392 PR libstdc++/12791
393 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
394 Rewrite, stop the parsing as soon as a digit cannot possibly
395 lead to a final number within the bounds; otherwise, simplify,
396 avoiding __ctype.is() and atoi().
397 * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
398 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
399
400 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
401 Minor tweak: a 4-digit integer cannot be bigger than 9999.
402
403 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
404 type-correct wchar_t string literals.
405 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
406 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
407 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
408 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
409
17e15f7f
PC
4102003-12-02 Paolo Carlini <pcarlini@suse.de>
411
412 * include/bits/locale_facets.tcc (time_get::do_get_year):
413 Avoid using a basic_string and calling a full blown strtol
414 (via __convert_to_v) for simple 2 or 4 digits, base 10,
415 positive integers; simplify.
416
142b798b
PC
4172003-12-02 Paolo Carlini <pcarlini@suse.de>
418
419 * config/locale/gnu/monetary_members.cc
420 (money_base::_S_construct_pattern): For case 3: and 4:
421 exchanging 'if (__precedes)' and 'if (__space)' allows
422 to factor out a few more assignments.
423
6b98580b
BK
4242003-12-01 Benjamin Kosnik <bkoz@redhat.com>
425
426 * include/bits/basic_ios.h (basic_ios::setstate): Revert.
427 * include/bits/istream.tcc: Only call setstate if __err != goodbit.
428 * include/bits/ostream.tcc: Same.
429 * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
430
431 * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
432 internal buffer non-static.
433
d78e147a
BK
4342003-12-01 Benjamin Kosnik <bkoz@redhat.com>
435
436 * docs/html/17_intro/C++STYLE: Add exception bits.
437 * include/bits/fstream.tcc: Add location info to exception strings.
438
439 * include/bits/stl_construct.h: Formatting tweaks.
440
9dbaa948
PC
4412003-12-01 Paolo Carlini <pcarlini@suse.de>
442
443 PR libstdc++/10378
444 * include/bits/allocator.h (allocator::construct): Implement
445 resolution of DR 402 [Ready] (in Revision 28).
446 * include/bits/allocator_traits.h (__allocator::construct):
447 Likewise.
448 * include/bits/stl_construct.h (_Construct): Likewise.
449 * testsuite/20_util/allocator_members.cc: Move to...
450 * testsuite/20_util/allocator/1.cc: ... here.
451 * testsuite/20_util/allocator/10378.cc: New.
452 * docs/html/ext/howto.html: Add an entry for DR 402.
453
1644f06d
PC
4542003-11-30 Paolo Carlini <pcarlini@suse.de>
455
456 * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
457 codecvt::do_length): More minor tweaks.
458
11816ba2
PC
4592003-11-30 Paolo Carlini <pcarlini@suse.de>
460
461 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
462 Minor stylistic tweak.
463
6c39c207
PC
4642003-11-30 Paolo Carlini <pcarlini@suse.de>
465
466 * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
467 Minor tweaks, consistent with the style used in other facets.
468
4da2b960
PC
4692003-11-29 Paolo Carlini <pcarlini@suse.de>
470
471 * include/bits/fstream.tcc (underflow): Minor tweaks in
472 preparation for libstdc++/13217.
473
2d25605a
PC
4742003-11-29 Paolo Carlini <pcarlini@suse.de>
475
476 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
477 Tweak for a few small problems (fix timings, use VERIFY..)
478
05a47a47
PC
4792003-11-28 Paolo Carlini <pcarlini@suse.de>
480
481 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
482 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
483 the original third testcase for libstdc++/13171 belong here.
484
ac912ba1
PC
4852003-11-28 Paolo Carlini <pcarlini@suse.de>
486
487 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
488 Remove extraneous wchar_t lines.
489
5536b61c
PC
4902003-11-27 Paolo Carlini <pcarlini@suse.de>
491
492 PR libstdc++/11544
493 PR libstdc++/11603
3090572c 494 * include/bits/fstream.tcc (underflow): Throw ios_base::failure
5536b61c
PC
495 upon incomplete or invalid byte sequences in the file.
496 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
497 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
498 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
499
fb8d4638
PC
5002003-11-27 Paolo Carlini <pcarlini@suse.de>
501
502 * include/std/std_streambuf.h (__copy_streambufs): Remove
503 the first, unused, basic_ios<> parameter.
504 * src/streambuf-inst.cc: Likewise.
505 * include/bits/streambuf.tcc: Likewise.
506 * include/bits/istream.tcc (operator>>(__streambuf_type*)):
507 Tweak accordingly the call.
508 * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
509 Likewise.
510
511 * include/bits/streambuf.tcc (__copy_streambufs): Remove
512 redundant try/catch.
513
12841eb3
BK
5142003-11-26 Benjamin Kosnik <bkoz@redhat.com>
515
516 PR libstdc++/9371
517 PR libstdc++/9546
518 PR libstdc++/10093
519 PR libstdc++/10095
520 * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
521 (basic_ios::_M_setstate): Consolidate common error handling code.
522 * include/bits/basic_ios.tcc: Tweak.
523 * include/bits/fstream.tcc: Tweak.
524 * include/bits/istream.tcc: Use _M_setstate for common exception
525 handling. Move setstate calls after catch.
526 (basic_istream::tellg): Check for exceptions thrown by streambuf
527 virtual functions.
528 (basic_istream::seekg): Same.
529 * include/bits/ostream.tcc: Same, but for ostream.
530 (basic_ostream::flush): Check for exceptions thrown by streambuf
531 virtual functions.
532 (basic_istream::tellp): Same.
533 (basic_istream::seekp): Same.
534 * include/bits/locale_facets.tcc: Tweak.
535 * include/bits/streambuf.tcc: Tweak.
536 (__copy_streambufs): Propagate exceptions.
537 * testsuite/testsuite_io.h (fail_streambuf): New.
538 (fail_num_get): New.
539 (fail_num_put): New.
540 (facet_error): New.
541 (underflow_error): New.
542 (overflow_error): New.
543 (positioning_error): New.
544 * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
545 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
546 exceptions_badbit_throw.cc, exceptions_failbit.cc,
547 exceptions_failbit_throw.cc: New.
548 * testsuite/27_io/basic_istream/extractors_other/char/
549 error_failbit.cc, exceptions_badbit_throw.cc,
550 exceptions_failbit_throw.cc, exceptions_null.cc: New.
551 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
552 New.
553 * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
554 New.
555 * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
556 New.
557 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
558 exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
559 * testsuite/27_io/basic_ostream/inserters_other/char/
560 error_failbit.cc, exceptions_badbit_throw.cc,
561 exceptions_failbit_throw.cc, exceptions_null.cc: New.
562 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
563 New.
564 * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
565 New.
566
48f499cf
BK
5672003-11-26 Benjamin Kosnik <bkoz@redhat.com>
568
569 PR libstdc++/12297
570 * include/bits/istream.tcc
571 (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
572 * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
573
c03d83d4
PC
5742003-11-26 Paolo Carlini <pcarlini@suse.de>
575 Petur Runolfsson <peturr02@ru.is>
576
577 PR libstdc++/13171
578 * include/bits/fstream.tcc (imbue): Relax the conditions under
579 which the function succeeds: allow for two consecutive calls with
580 the same name; state dependent encodings are ok even after open
581 if at the beginning of the file; don't check seekoff return value
582 (pipes, cin, cout, etc...)
583 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
584 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
585 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
586 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
587 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
588 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
589 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
590 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
591
592 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
593 correctly use the UTF-8 locale appearing in the PR.
594
7fb1d711
PC
5952003-11-26 Paolo Carlini <pcarlini@suse.de>
596
597 * include/bits/locale_facets.h
598 (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
599 _M_truename and _M_falsename: the constructor always does
600 it immediately before the _M_cache call.
601
5af91f06
PC
6022003-11-25 Paolo Carlini <pcarlini@suse.de>
603
604 * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
605 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
606 former is very fast, but stops if encounters a NUL.
607 (codecvt::do_out): Tweaks.
608 (codecvt::do_in): Tweaks, improve the code dealing with errors.
609 * testsuite/performance/wchar_t_length.cc: New.
610
3c8797ae
PC
6112003-11-24 Paolo Carlini <pcarlini@suse.de>
612
613 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
614 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
615 former is very fast, but stops if encounters a NUL.
616 (codecvt::do_out): Tweak.
617 * testsuite/performance/wchar_t_in.cc: New.
618
6192003-11-24 Paolo Carlini <pcarlini@suse.de>
620
621 * include/bits/locale_facets.h
622 (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
623 in order to avoid memory leaks; simplify a bit.
624
e0ec69c9
BK
6252003-11-24 Benjamin Kosnik <bkoz@redhat.com>
626
627 * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
628 non-standard throw specs.
629 * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
630 * testsuite/24_iterators/istreambuf_iterator/1.cc
631 * testsuite/24_iterators/istreambuf_iterator/2.cc
632 * testsuite/24_iterators/istreambuf_iterator/2627.cc
633 * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
634 * testsuite/24_iterators/ostreambuf_iterator/1.cc
635 * testsuite/24_iterators/ostreambuf_iterator/2.cc
636
637 * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
638 don't link.
639
640 * include/bits/allocator.h: Formatting tweak.
641
ce492af3
PC
6422003-11-24 Paolo Carlini <pcarlini@suse.de>
643
644 * src/locale_init.cc: Cosmetic reformatting.
645
bf058d22
PC
6462003-11-23 Paolo Carlini <pcarlini@suse.de>
647
648 * include/bits/locale_facets.tcc (__add_grouping):
649 Cosmetic reformatting.
650
89a2fb90
PC
6512003-11-23 Paolo Carlini <pcarlini@suse.de>
652
653 * include/bits/locale_facets.tcc (_M_extract_float,
654 _M_extract_int): Remove a wrong comment and simplify
655 the corresponding code using char_traits::find().
656
cc0c2f79
PC
6572003-11-22 Paolo Carlini <pcarlini@suse.de>
658
659 * config/locale/gnu/monetary_members.cc
660 (money_base::_S_construct_pattern): Factor out two assignments.
661
a3b1b804
PC
6622003-11-22 Paolo Carlini <pcarlini@suse.de>
663
664 * include/bits/istream.tcc (getline(basic_string<>&)):
665 Fix error in comment of the previous commit.
666
1a311979
PC
6672003-11-22 Paolo Carlini <pcarlini@suse.de>
668
669 PR libstdc++/12593
670 * include/bits/istream.tcc (operator>>(basic_string<>&),
671 getline(basic_string<>&)): Implement resolution of DR 91 [WP];
672 fix some minor issues with the exit conditions.
673 * docs/html/ext/howto.html: Add an entry for DR 91.
674
f7ba331c
PC
6752003-11-21 Paolo Carlini <pcarlini@suse.de>
676
677 * config/locale/gnu/monetary_members.cc
678 (money_base::_S_construct_pattern): Factor out an assignment.
679
5c89246d
PC
6802003-11-21 Paolo Carlini <pcarlini@suse.de>
681
682 PR libstdc++/12882 (partial)
683 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
684 and ftello64 too.
685 * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
686 and ftello64 if available.
687 * aclocal.m4: Regenerate.
688 * configure: Ditto.
689
9dc420e6
BK
6902003-11-20 Benjamin Kosnik <bkoz@redhat.com>
691
692 * include/debug/formatter.h: Use _Tp as template argument.
693 * src/debug.cc: Same, instantiate std::size_t.
694
4be58168
BK
6952003-11-20 Benjamin Kosnik <bkoz@redhat.com>
696
697 PR libstdc++/13109
698 * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
699 * src/debug.cc (__gnu_debug): Format.
700 (_Error_formatter::_M_format_word): Define, use, instantiate.
701
0fd18701
PC
7022003-11-20 Paolo Carlini <pcarlini@suse.de>
703
704 PR libstdc++/11602
705 * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
706 Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
707 former is very fast, but stops if encounters a NUL.
708 * testsuite/performance/wchar_t_out.cc: New, from the PR.
709
1f33554a
PC
7102003-11-19 Paolo Carlini <pcarlini@suse.de>
711
712 * config/locale/gnu/codecvt_members.cc (do_out): If
713 we can upper bound the total number of external chars
714 to something smaller than __to_end - __to, avoid the
715 temporary buffer, the memcopy and simplify the loop.
716 * config/locale/generic/codecvt_members.cc (do_out):
717 Likewise.
718
90635952
AT
7192003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
720
721 * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
722 * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
723 flag.
724
bc225f98
JW
7252003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
726
727 * docs/html/configopts.html, docs/html/debug.html,
728 docs/html/documentation.html, docs/html/explanations.html,
729 docs/html/install.html, docs/html/17_intro/contribute.html,
730 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
731 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
732 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
733 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
734 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
735 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
736 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
737 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
738 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
739
29342463
PC
7402003-11-18 Paolo Carlini <pcarlini@suse.de>
741
742 PR libstdc++/12868
743 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
744 always ok to imbue a new locale, provided seekoff(0, cur, ...)
745 doesn't fail, of course.
746 (underflow): In order for the above to work, deal gracefully
747 with _M_codecvt->in returning codecvt_base::error while
748 (__ilen = __iend - this->eback()) > 0: it just means __ilen
749 correctly converted internal characters before an error.
750 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
751
c2466393
PC
7522003-11-17 Paolo Carlini <pcarlini@suse.de>
753
754 * include/bits/locale_facets.tcc: Fix typo in comment.
755
6a7ee0d6
PC
7562003-11-17 Paolo Carlini <pcarlini@suse.de>
757
758 * testsuite/22_locale/num_put/put/char/8.cc: New test,
759 summarizing the discussion ensuing libstdc++/12988.
760 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
761
781a5298
PC
7622003-11-15 Paolo Carlini <pcarlini@suse.de>
763
764 * include/std/std_fstream.h: Tweak a comment.
765
c85dfef7
RS
7662003-11-15 Roger Sayle <roger@eyesopen.com>
767
768 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
769 into the __gnu_cxx::__c99_binding namespace.
770 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
771 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
772 GCC's math builtins, i.e. __builtin_foo.
773 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
774 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
775 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
776
38455b2b
PC
7772003-11-14 Paolo Carlini <pcarlini@suse.de>
778
779 * testsuite/22_locale/locale/cons/12352.cc: Use
780 __gnu_test::try_named_locale.
781
c60cfc76
PC
7822003-11-14 Paolo Carlini <pcarlini@suse.de>
783
784 * docs/html/ext/howto.html: Add entries for DR 63, 75
785 and 305; tweak entries for DR 60 and 328.
786
1b80d64a
DG
7872003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
788
789 * docs/html/debug.html: Users are allowed to specialize in
790 namespace __gnu_debug, unlike in the Apple version of the debug
791 mode. Clear up a confusing double-negative. Note that
792 std::basic_string does provide extra debugging capabilities, but
793 not safe iterators.
794 * include/bits/basic_string.tcc: Make sure there's never an
795 ambiguity when calling __is_null_pointer.
796 * include/debug/deque: (deque::erase) Properly handle invalidation
797 when erasing at the end of the deque.
798 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
799 (vector::clear): Set the guaranteed capacity to 0.
800 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
801 iterator invalidation when erasing at the end of the deque.
802
a2dcfada
PC
8032003-11-13 Paolo Carlini <pcarlini@suse.de>
804 Petur Runolfsson <peturr02@ru.is>
805
806 PR libstdc++/13007
807 * include/bits/fstream.tcc (imbue): Don't touch the stored
808 locale.
809 * include/std/std_streambuf.h (imbue): According to the
810 standard, base class version does nothing.
811 (pubimbue): Store the locale.
812 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
813 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
814 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
815 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
816 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
817 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
818 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
819 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
820
5681c890
PR
8212003-11-13 Petur Runolfsson <peturr02@ru.is>
822
823 PR libstdc++/12594
824 * include/bits/ostream.tcc
825 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
826 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
827 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
828 Implement the resolution of DR 60 (TC): These are not formatted
829 output functions so don't construct sentry objects and don't
830 catch exceptions.
831 (basic_ostream::put, basic_ostream::write): Implement the
832 resolution of DR 63 (TC) by catching exceptions and setting
833 badbit.
834 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
835 This is not an unformatted output function so don't construct
836 a sentry object.
837 * testsuite/testsuite_io.h (sync_streambuf): Define.
838 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
839 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
840 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
841 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
842
f144e859
PC
8432003-11-13 Paolo Carlini <pcarlini@suse.de>
844
845 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
846 Fix, closely following the testcase included in the PR.
847 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
848 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
849 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
850
a198480e
JW
8512003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
852
853 * docs/html/17_intro/configury.html: XHTML tweak.
854
684edd67
JW
8552003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
856
857 * docs/html/debug_mode.html: XHTML fixes.
858
89341602
BK
8592003-11-12 Benjamin Kosnik <bkoz@redhat.com>
860
861 * docs/html/debug_mode.html: Update.
862 * docs/html/17_intro/TODO: Update.
863
f9d52373
BK
8642003-11-12 Benjamin Kosnik <bkoz@redhat.com>
865
866 * include/bits/c++config: Move using directive...
867 * include/debug/formatter.h: ...here.
868
22e5c8fa
CW
8692003-11-12 Carlo Wood <carlo@alinoe.com>
870
871 PR libstdc++/12947
872 * bits/demangle.h
873 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
874 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
875 (session<Allocator>::next_peek() const): Added.
876 (decode_non_negative_decimal_integer(string_type&)):
877 Renamed from decode_decimal_integer(string_type&).
878 (session<Allocator>::decode_nested_name):
879 Decode <template_param> as well.
880 (session<Allocator>::add_substitution):
881 Handle <template-param> for <nested-name>'s.
882 (enum xary_nt): Added.
883 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
884 (symbol_name_table_c): Updated for `entry_st::type' and additional
885 operators (unary `operator+' and `sizeof(type)').
886 (offset_table_c): Updated for new operators (causing a new hash map).
887 (decode_operator_name): Match the updated hash map.
888 (session<Allocator>::decode_expression):
889 Support for `sizeof ([typename] type)' (st),
890 dependent names (sr) and casting operator (cv). Handle
891 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
892 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
893 (session<Allocator>::decode_type_with_postfix):
894 Support `extern "C"' function types (FY).
895 * testsuite/demangle/regression/cw-16.cc: Added tests for the
896 added functionality.
897 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
898 appended.
899
dfad48c6
PC
9002003-11-11 Paolo Carlini <pcarlini@suse.de>
901
902 PR libstdc++/12875
903 * include/bits/fstream.tcc (setbuf): Don't do anything
904 after open(), in particular don't discard data.
905 (_M_allocate_internal_buffer): Tweak to not allocate memory
906 in case the buffer is provided by the user via setbuf.
907 * include/ext/stdio_filebuf.h: Tweak comment.
908 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
909 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
910 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
911 setbuf does nothing after open().
912 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
913
285b36d6
BK
9142003-11-11 Doug Gregor <gregod@cs.rpi.edu>
915
916 * docs/html/debug.html: Document libstdc++ debug mode.
917 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
918 * docs/html/test.html: Document how to test under debug mode.
919 * docs/html/17_intro/howto.html: Document debug-mode macros.
920 * include/Makefile.am: Install debug-mode headers.
921 * src/Makefile.am: Include debug.cc.
922 * include/bits/basic_string.tcc:
923 (basic_string::_S_construct): Fix NULL pointer check.
924 (__is_null_pointer): New.
925 Add precondition annotations.
926 * include/bits/stream_iterator.h (istream_iterator,
927 ostream_iterator): Added precondition annotations.
928 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
929 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
930 * include/bits/stl_stack.h (stack): Ditto.
931 * include/bits/basic_string.h (basic_string): Ditto.
932 * include/bits/basic_string.tcc (basic_string): Ditto.
933 * include/std/std_memory.h (auto_ptr): Ditto.
934 * include/std/std_valarray.h (valarray): Ditto.
935 * include/bits/stl_algo.h: Added algorithm precondition
936 annotations.
937 * include/bits/stl_algobase.h: Added algorithm precondition
938 annotations.
939 * include/bits/stl_numeric.h: Ditto.
940 * include/ext/algorithm: Added algorithm precondition
941 annotations.
942 (__is_heap): Moved away from here.
943 * include/bits/stl_heap.h: Added algorithm precondition
944 annotations.
945 (__is_heap): Moved to the top of this file.
946 (__is_heap): Added iterator range overloads.
947 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
948 with changes in std_memory.h.
949 * testsuite/23_containers/list/operators/4.cc: Don't verify
950 performance guarantees when in debug mode.
951 * testsuite/23_containers/bitset/invalidation/1.cc: New.
952 * testsuite/23_containers/deque/invalidation/1.cc: New.
953 * testsuite/23_containers/deque/invalidation/2.cc: New.
954 * testsuite/23_containers/deque/invalidation/3.cc: New.
955 * testsuite/23_containers/deque/invalidation/4.cc: New.
956 * testsuite/23_containers/list/invalidation/1.cc: New.
957 * testsuite/23_containers/list/invalidation/2.cc: New.
958 * testsuite/23_containers/list/invalidation/3.cc: New.
959 * testsuite/23_containers/list/invalidation/4.cc: New.
960 * testsuite/23_containers/map/invalidation/1.cc: New.
961 * testsuite/23_containers/map/invalidation/2.cc: New.
962 * testsuite/23_containers/multimap/invalidation/1.cc: New.
963 * testsuite/23_containers/multimap/invalidation/2.cc: New.
964 * testsuite/23_containers/multiset/invalidation/1.cc: New.
965 * testsuite/23_containers/multiset/invalidation/2.cc: New.
966 * testsuite/23_containers/set/invalidation/1.cc: New.
967 * testsuite/23_containers/set/invalidation/2.cc: New.
968 * testsuite/23_containers/vector/invalidation/1.cc: New.
969 * testsuite/23_containers/vector/invalidation/2.cc: New.
970 * testsuite/23_containers/vector/invalidation/3.cc: New.
971 * testsuite/23_containers/vector/invalidation/4.cc: New.
972 * testsuite/25_algorithms/heap.cc: Don't verify
973 performance guarantees when in debug mode.
974 * include/debug/bitset: New.
975 * include/debug/debug.h: New.
976 * include/debug/deque: New.
977 * include/debug/formatter.h: New.
978 * include/debug/hash_map: New.
979 * include/debug/hash_map.h: New.
980 * include/debug/hash_multimap.h: New.
981 * include/debug/hash_set: New.
982 * include/debug/hash_set.h: New.
983 * include/debug/hash_multiset.h: New.
984 * include/debug/list: New.
985 * include/debug/map: New.
986 * include/debug/map.h: New.
987 * include/debug/multimap.h: New.
988 * include/debug/multiset.h: New.
989 * include/debug/safe_base.h: New.
990 * include/debug/safe_iterator.h: New.
991 * include/debug/safe_iterator.tcc: New.
992 * include/debug/safe_sequence.h: New.
993 * include/debug/set: New.
994 * include/debug/set.h: New.
995 * include/debug/string: New.
996 * include/debug/vector: New.
997 * src/debug.cc: New.
998 * config/linker-map.gnu: Add debug mode symbols.
999
10002003-11-11 Benjamin Kosnik <bkoz@redhat.com>
1001
1002 * src/string-inst.cc: Tweak namespaces.
1003 * src/misc-inst.cc: Same.
1004 * docs/html/debug.html: Edits.
1005 * config/link-map.gnu: Remove cruft.
1006
1007 * include/bits/c++config: Add in namespace associations.
1008 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
1009 comment tweaks.
1010 * include/bits/deque.tcc: Same.
1011 * include/bits/list.tcc: Same.
1012 * include/bits/stl_bvector.h: Same.
1013 * include/bits/stl_deque.h: Same.
1014 * include/bits/stl_list.h: Same.
1015 * include/bits/stl_map.h: Same.
1016 * include/bits/stl_multimap.h: Same.
1017 * include/bits/stl_multiset.h: Same.
1018 * include/bits/stl_set.h: Same.
1019 * include/bits/stl_vector.h: Same.
1020 * include/bits/vector.tcc: Same.
1021
1022 * include/std/std_algorithm.h: Remove markup comments.
1023 * include/std/std_functional.h: Same.
1024 * include/std/std_iterator.h: Same.
1025 * include/std/std_numeric.h: Same.
1026 * include/std/std_utility.h: Same.
1027 * include/bits/stl_queue.h: Formatting tweaks.
1028 * include/bits/stl_stack.h: Same.
1029 * include/std/std_deque.h: Include debugging version in debug mode.
1030 * include/std/std_list.h: Same.
1031 * include/std/std_map.h: Same.
1032 * include/std/std_set.h: Same.
1033 * include/std/std_vector.h: Same.
1034 * include/std/std_queue.h: Use deque, vector.
1035 * include/std/std_stack.h: Same.
1036
f6a7db9e
PC
10372003-11-09 Paolo Carlini <pcarlini@suse.de>
1038
1039 * include/bits/locale_facets.tcc (_M_insert_int,
1040 _M_insert_float): Move a couple of vars inside an if block.
1041
7c752655
PC
10422003-11-09 Paolo Carlini <pcarlini@suse.de>
1043
1044 PR libstdc++/12971
1045 * include/bits/locale_facets.tcc
1046 (money_put::do_put(..., long double)): Fix conversion
1047 specification as per DR 328 [WP].
1048 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
1049 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
1050 * docs/html/ext/howto.html: Add entry for DR 328.
1051
41d3a0c3
PC
10522003-11-08 Paolo Carlini <pcarlini@suse.de>
1053
1054 PR libstdc++/12967
1055 * include/bits/list.tcc (merge): Implement resolution of
1056 DR 300 [WP].
1057 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
1058 for DR 231.
1059
1060 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1061 Import R27.
1062
3ab3dca6
JW
10632003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
1064
1065 * libsupc++/vec.cc: Conform to C++STYLE.
1066
2d369f35
CW
10672003-11-07 Carlo Wood <carlo@alinoe.com>
1068
1069 PR libstdc++/12736
1070 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
1071 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
1072 K, V, r and A qualifiers before processing them as a group.
1073 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
1074 * testsuite/demangle/regression/cw-16.cc: New.
1075
b938ad89
RM
10762003-11-07 Robert Millan <robertmh@gnu.org>
1077
f6a7db9e
PC
1078 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
1079 * crossconfig.m4: Likewise.
1080 * configure: Regenerate.
b938ad89 1081
eb622d37
CW
10822003-11-07 Carlo Wood <carlo@alinoe.com>
1083
f6a7db9e
PC
1084 * include/bits/demangle.h
1085 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1086 string_type&, bool member_function_pointer_qualifiers):
1087 Always separate the '[' of an array type with a space from
1088 what is left of it, except when that is the closing bracket
1089 of another array dimension.
eb622d37 1090
2215f732
CW
10912003-11-07 Carlo Wood <carlo@alinoe.com>
1092
f6a7db9e 1093 * include/bits/demangle.h
2215f732
CW
1094 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1095 string_type&, bool) const): Made const.
1096 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
1097 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
1098 std::ostream& operator<<(std::ostream&, qualifier const&),
1099 std::ostream& operator<<(std::ostream&, qualifier_list const&),
1100 qualifier_list<Allocator>::decode_qualifiers(string_type&,
1101 string_type&, bool) const,
1102 session<Allocator>::decode_type_with_postfix(string_type&,
1103 string_type&, qualifier_list<Allocator>*))
1104 Added and/or changed debug-only hooks and code.
1105
d30b600a
JO
11062003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
1107
1108 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
1109 immediately return. This reflects a C++ ABI change 2003 Nov 03.
1110 (__cxa_vec_delete3): Likewise.
1111
5e93f39f
PR
11122003-11-03 Petur Runolfsson <peturr02@ru.is>
1113
1114 PR libstdc++/12790
1115 * include/bits/fstream.tcc: Delete _M_last_overflowed.
1116 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
1117 (basic_filebuf::open, basic_filebuf::close): Assign
1118 _M_state_beg to _M_state_cur and _M_state_last.
1119 (basic_filebuf::close): Call _M_terminate_output to handle
1120 unshift and flushing.
1121 (basic_filebuf::underflow): Assign _M_state_last, throw
1122 exception instead of calling abort when codecvt::max_length()
1123 is bad.
1124 (basic_filebuf::seekoff): Use _M_state_last when calling
1125 codecvt::length(), pass correct state to _M_seek.
1126 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
1127 (basic_filebuf::_M_seek): Add __state_type parameter,
1128 set _M_state_cur correctly, store the resulting state in
1129 the return value and use _M_terminate_output to handle
1130 flushing and unshift.
1131 (basic_filebuf::_M_terminate_output): Flush contents of
1132 output buffer, if any, then call codecvt::unshift as
1133 needed and output the result.
1134 (basic_filebuf::sync): Move here, don't modify _M_writing
1135 or _M_reading.
1136
1137 * include/std/std_fstream.h
1138 (basic_filebuf::_M_state_last): Declare it.
1139 (basic_filebuf::_M_last_overflowed): Delete.
1140 (basic_filebuf::_M_seek): Add __state_type parameter.
1141 (basic_filebuf::sync): Declare only.
1142 (basic_filebuf::_M_output_unshift): Delete.
1143 (basic_filebuf::_M_terminate_output): Declare it.
1144
1145 * testsuite/testsuite_character.h:
1146 Define character class and state class plus char_traits and
1147 codecvt specializations for same for testing support for
1148 stateful encodings.
1149
1150 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
1151 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
1152 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
1153 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
1154 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
1155 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
1156 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
1157 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
1158 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
1159 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
1160 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
1161 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
1162 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
1163 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
1164 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
1165 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
1166 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
1167 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
1168 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
1169 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
1170 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
1171 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
1172 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
1173 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
1174 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
1175 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
1176 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
1177 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
1178 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
1179 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
1180 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
1181 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
1182 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
1183 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
1184 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
1185 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
1186 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
1187 New tests.
1188
1189 * testsuite/27_io/basic_filebuf/3.cc,
1190 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
1191 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
1192 * testsuite/27_io/basic_fstream/3.cc,
1193 * testsuite/27_io/basic_ifstream/3.cc,
1194 * testsuite/27_io/basic_ofstream/3.cc:
1195 Use streamoff as off_type and fpos<state_type> as pos_type.
1196
1197 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
1198 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
1199 Check that sync does *not* set _M_writing to false.
1200
1b9e6d64
AG
12012003-11-03 Anthony Green <green@redhat.com>
1202
1203 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
1204 they're used.
1205
e0f05105
BK
12062003-11-03 Benjamin Kosnik <bkoz@redhat.com>
1207
1208 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
1209 ctype argument.
1210 * include/bits/locale_facets.tcc: Same, use it to allow
1211 capitalized names.
1212
1213 * include/bits/fstream.tcc: Spacing tweak.
1214 * include/bits/istream.tcc: Same.
1215 * include/bits/ostream.tcc: Same.
1216
08b9183d
PC
12172003-10-30 Paolo Carlini <pcarlini@suse.de>
1218
1219 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1220 __mod is only assigned, never used its value, remove it.
1221
f1e7988a
PC
12222003-10-29 Paolo Carlini <pcarlini@suse.de>
1223
1224 * include/bits/locale_facets.tcc (time_get::do_get_year):
1225 Absolutely avoid dereferencing end iterators.
1226 (time_put::put): Minor clean up.
1227
1228 * include/bits/locale_facets.tcc: Cosmetic reformattings.
1229
58c9703f
PC
12302003-10-29 Paolo Carlini <pcarlini@suse.de>
1231
1232 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1233 Revert the last commit, is not correct, sorry.
1234
4f363232
PC
12352003-10-29 Paolo Carlini <pcarlini@suse.de>
1236
1237 * config/locale/generic/c_locale.cc: Add back <cmath> and
1238 <cstdlib>.
1239
1240 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1241 Clean up.
1242
6bf0b59c
PC
12432003-10-29 Paolo Carlini <pcarlini@suse.de>
1244
1245 * include/bits/locale_facets.tcc (time_put::put): Absolutely
1246 avoid dereferencing end iterators; clean up.
1247
1248 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1249 num_get::_M_extract_int): Minor tweak.
1250
c9cca2c2
PC
12512003-10-29 Paolo Carlini <pcarlini@suse.de>
1252
1253 * include/bits/locale_facets.tcc: Remove some unnecessary
1254 includes.
1255 * config/locale/generic/c_locale.cc: Include <cerrno> here.
1256 * config/locale/gnu/c_locale.cc: Likewise.
1257
157f3283
PC
12582003-10-28 Paolo Carlini <pcarlini@suse.de>
1259
1260 * include/bits/locale_facets.tcc
1261 (money_get<>::do_get(..., string_type&)): Absolutely avoid
1262 dereferencing end iterators; general clean up.
1263
cc27f5a2
PC
12642003-10-28 Paolo Carlini <pcarlini@suse.de>
1265
1266 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1267 Absolutely avoid dereferencing end iterators.
1268 (time_get::_M_extract_name): Likewise.
1269
1270 * include/bits/locale_facets.tcc
1271 (time_get::_M_extract_via_format, case 'e'): Don't try to
1272 be smart wrt returning the right __beg in case of parse
1273 error, time_get::_M_extract_num must be fixed instead.
1274
0c6b814a
PC
12752003-10-27 Paolo Carlini <pcarlini@suse.de>
1276
1277 PR libstdc++/12778
1278 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1279 * aclocal.m4: Regenerate.
1280 * configure: Regenerate.
1281
0f09879b
BK
12822003-10-27 Benjamin Kosnik <bkoz@redhat.com>
1283
1284 * docs/html/17_intro/TODO: Add links.
1285 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1286 Uncomment.
1287
f20d2b78
PC
12882003-10-27 Paolo Carlini <pcarlini@suse.de>
1289
1290 PR libstdc++/12750
1291 * include/bits/locale_facets.tcc
1292 (time_get::_M_extract_via_format): Deal with code 'e'.
1293 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1294 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1295
1296 * include/bits/locale_facets.tcc
1297 (time_get::_M_extract_via_format): Tweak to absolutely avoid
1298 dereferencing end iterators.
1299
1300 * include/bits/locale_facets.h (__verify_grouping):
1301 Const-ify second parameter.
1302 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1303 * src/locale-inst.cc (__verify_grouping): Ditto.
1304
13052003-10-27 Paolo Carlini <pcarlini@suse.de>
1306
1307 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1308 Various things: 1- Avoid absolutely end iterator dereferences;
1309 2- Improve performance-wise the code skipping leading zeros;
1310 3- Fix two bugs wrt early bail out in case of parsing errors
1311 (see testcases); 4- General clean up.
1312 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1313 use __builtin_expect to favor base 10 inputs.
1314 * testsuite/22_locale/num_get/get/char/7.cc: New.
1315 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1316
f883c8dc
PC
13172003-10-26 Paolo Carlini <pcarlini@suse.de>
1318
1319 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1320 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1321
999bf60f
PC
13222003-10-25 Paolo Carlini <pcarlini@suse.de>
1323
1324 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1325 __pos in only incremented, never used its value, remove it.
1326
b2398b49
RM
13272003-10-24 Robert Millan <robertmh@gnu.org>
1328
1329 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1330 and knetbsd*-gnu.
1331 * aclocal.m4: Regenerated.
1332 * configure: Regenerated.
1333
761faeec
PC
13342003-10-24 Paolo Carlini <pcarlini@suse.de>
1335
1336 * include/bits/locale_facets.tcc (money_get::do_get(...,
1337 long double&): Properly size the temporary buffer.
1338 * testsuite/22_locale/money_get/get/char/11.cc: New.
1339 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1340
1341 * include/bits/locale_facets.tcc (num_put::_M_group_int,
1342 num_put::_M_group_float, money_put::do_put(..., const
1343 string_type&), collate::do_compare, collate::do_transform):
1344 Prefer basic_string::data() to c_str() when the '\0'
1345 terminator is not really needed.
1346
eebf21ef
PC
13472003-10-24 Paolo Carlini <pcarlini@suse.de>
1348
1349 * include/bits/locale_facets.tcc (__verify_grouping):
1350 Prefer '=' to an unnecessary '&='.
1351
ebaeca8b
PC
13522003-10-24 Paolo Carlini <pcarlini@suse.de>
1353
1354 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1355 Tweak my fix for libstdc++/12657.
1356
bf22935f
PC
13572003-10-24 Paolo Carlini <pcarlini@suse.de>
1358
1359 * include/bits/locale_facets.tcc (money_get::do_get(...,
1360 string_type&): Minor tweak to the previous commit.
1361
14628700
PC
13622003-10-24 Paolo Carlini <pcarlini@suse.de>
1363
1364 * include/bits/locale_facets.tcc (money_get::do_get(...,
1365 string_type&): Disregard the previous commit: doesn't hurt but
1366 doesn't accomplish anything useful either. This is the right
1367 one, speeding up greatly the function in case of early fail.
1368
cdd5cf72
PC
13692003-10-24 Paolo Carlini <pcarlini@suse.de>
1370
1371 * include/bits/locale_facets.tcc (money_get::do_get(...,
1372 string_type&): Move an if block, thus minimizing the amount
1373 of code processed anyway when __tmp_units.size() == 0.
1374
c21dbe85
PC
13752003-10-24 Paolo Carlini <pcarlini@suse.de>
1376
1377 * include/bits/locale_facets.tcc
1378 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1379 equivalent to 'y'.
1380
d2c354f3
BK
13812003-10-23 Benjamin Kosnik <bkoz@redhat.com>
1382
1383 * docs/html/documentation.html: Add a pointer to the doxygen style
1384 guide.
1385 * docs/html/17_intro/TODO: Update.
1386 * docs/html/test.html: Add instructions for running a subset of
1387 tests, update.
1388
60aa9fc3
PC
13892003-10-23 Paolo Carlini <pcarlini@suse.de>
1390
1391 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1392 string_type&)): Use find_first_not_of to strip leading
1393 zeros; if __tmp_units == "0" never prefix it with '-';
1394 always fail if __tmp_units is empty.
1395 * testsuite/22_locale/money_get/get/char/10.cc: New.
1396 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1397
861f9573
PE
13982003-10-23 Phil Edwards <phil@codesourcery.com>
1399
1400 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
1401 2003-10-21 change.
1402
3c21d6e0
PC
14032003-10-22 Paolo Carlini <pcarlini@suse.de>
1404
1405 * include/bits/locale_facets.tcc (__int_to_char): Remove
1406 the const int parameter.
1407 (_M_insert_int): Update caller.
1408 * src/locale-inst.cc (__int_to_char): Update instantiations.
1409
bf5fe473
BK
14102003-10-22 Benjamin Kosnik <bkoz@redhat.com>
1411
1412 * include/bits/locale_facets.h: Correct byname facets for "C"
1413 locale.
1414 * config/locale/generic/ctype_members.cc: Same.
1415 * config/locale/generic/messages_members.h: Same.
1416 * config/locale/gnu/ctype_members.cc: Same.
1417 * config/locale/gnu/messages_members.h: Same.
1418 * include/bits/codecvt.h: Same.
1419 * src/ctype.cc: Same.
1420 * testsuite/22_locale/codecvt_byname/1.cc: New.
1421 * testsuite/22_locale/collate/1.cc: Edit.
1422 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1423 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1424 * testsuite/22_locale/ctype/1.cc: Derivation tests.
1425 * testsuite/22_locale/ctype/11844.cc: Move...
1426 * testsuite/22_locale/ctype_base/11844.cc: ...here.
1427 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1428 * testsuite/22_locale/ctype_byname/1.cc: Name.
1429 * testsuite/22_locale/messages_byname/1.cc: New.
1430 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1431 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1432 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1433 * testsuite/22_locale/numpunct/1.cc: Edit.
1434 * testsuite/22_locale/numpunct_byname/2.cc: Move...
1435 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1436 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1437 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1438
3d05b345
PC
14392003-10-22 Paolo Carlini <pcarlini@suse.de>
1440
1441 PR libstdc++/8610
1442 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1443 checking for the availability of int64_t.
1444 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1445 * configure.ac: Call here.
1446 * acconfig.h: Add undef for the corresponding symbols.
1447 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1448 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1449 (__basic_file<char>::seekoff): Likewise, call lseek64 when
1450 available, otherwise lseek, checking the __off parameter.
1451 * include/bits/postypes.h: Typedef __streamoff_base_type
1452 to int64_t if available, otherwise long long.
1453 * aclocal.m4: Regenerate.
1454 * config.h.in: Likewise.
1455 * configure: Likewise.
1456
1457 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1458 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1459
57d01e69
PC
14602003-10-22 Paolo Carlini <pcarlini@suse.de>
1461
1462 PR libstdc++/12657
1463 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1464 Implement resolution of DR 292 (WP).
1465 * docs/html/ext/howto.html: Add entry for DR 292.
1466
6b5a2662
BK
14672003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1468
1469 * include/ext/mt_allocator.h: Change include to gthr.h.
1470 * include/ext/rope: Same. Add _Refcount_base definitions.
1471 * include/ext/pool_allocator.h: Adjust namespaces.
1472 * include/bits/stl_threads.h (_Refcount_base): Move.
1473 Put remaining into namespace __gnu_cxx.
1474
82c2e3d4
BK
14752003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1476
1477 PR libstdc++/9858
1478 * include/bits/locale_facets.h (ctype<char>): Remove
1479 __ctype_abstract_base.
1480 (ctype<char>::do_is): Remove.
1481 (ctype<char>::do_scan_is): Remove.
1482 * src/ctype.cc: Same. Inline the rest.
1483 * testsuite/22_locale/ctype/is/char/9858.cc: New.
1484 * config/os/aix/ctype_noninline.h: Adjust ctor.
1485 * config/os/bsd/freebsd/ctype_noninline.h: Same.
1486 * config/os/bsd/netbsd/ctype_noninline.h: Same.
1487 * config/os/djgpp/ctype_noninline.h: Same.
1488 * config/os/generic/ctype_noninline.h: Same.
1489 * config/os/gnu-linux/ctype_noninline.h: Same.
1490 * config/os/hpux/ctype_noninline.h: Same.
1491 * config/os/irix/irix5.2/ctype_noninline.h: Same.
1492 * config/os/irix/irix6.5/ctype_noninline.h: Same.
1493 * config/os/mingw32/ctype_noninline.h: Same.
1494 * config/os/newlib/ctype_noninline.h: Same.
1495 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1496 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1497 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1498 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1499 * config/os/windiss/ctype_noninline.h: Same.
1500
d23ad8c8
PC
15012003-10-21 Paolo Carlini <pcarlini@suse.de>
1502
1503 * src/locale.cc: Tweak a comment.
1504 * src/localename.cc: Move a comment.
1505
9540958e
BK
15062003-10-20 Benjamin Kosnik <bkoz@redhat.com>
1507
1508 PR libstdc++/10081
1509 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1510 * testsuite_hooks.cc: Same.
1511 * 22_locale/numpunct/members/pod/1.cc: Edit.
1512 * 22_locale/numpunct/members/pod/2.cc: Same.
1513 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1514 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1515 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1516 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1517 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1518 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1519 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1520 * 27_io/basic_istream/sentry/pod/1.cc: New.
1521 * 27_io/basic_ostream/sentry/pod/1.cc: New.
1522 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1523 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1524
27d54b2a
RO
15252003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1526
1527 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1528 of external _MIPS_SIM_ABI32.
1529
65fc9769
PE
15302003-10-20 Phil Edwards <phil@codesourcery.com>
1531
1532 * configure.ac: Fix comment typo.
1533 * configure.host: Add vxworks to host_os switch.
1534 * crossconfig.m4: Remove old commented os_include_dir variables
1535 left over from autotools transition.
1536 (*-vxworks): New stanza.
1537 (*-windiss): Add missing symbols.
1538 * configure: Regenerate.
1539 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1540 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1541 New files.
1542 * config/os/windiss/os_defines.h: Define __C9X__.
1543
47395a24
DE
15442003-10-19 David Edelsohn <edelsohn@gnu.org>
1545
1546 PR other/12506
1547 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1548
8f4c7b67
AT
15492003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
1550
1551 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1552 confusion of the use of the gthr API when __gthread_active_p()
1553 returns true.
1554
c755e77d
BK
15552003-10-17 Benjamin Kosnik <bkoz@redhat.com>
1556
1557 * src/Makefile.am: Add new files.
1558 * src/Makefile.in: Regenerate.
1559 * src/globals.cc: Split into..
1560 * src/globals_io.cc: New.
1561 * src/globals_locale.cc: New.
1562 * src/ios.cc: Split into...
1563 * src/ios_init.cc: New.
1564 * src/ios_locale.cc: New.
1565 * src/locale-inst.cc: Split into..
1566 * src/wlocale-inst.cc: New.
1567 * src/locale-misc-inst.cc: New.
1568 * src/locale.cc, src/localename: Split into...
1569 * src/locale_facets.cc: New.
1570 * src/locale_init.cc: New.
1571 * src/wstring-inst.cc: Add copyright info.
1572
4c4809c1
BK
15732003-10-16 Petur Runolfsson <peturr02@ru.is>
1574
4c4809c1
BK
1575 PR libstdc++/11450
1576 PR libstdc++/11543
1577 PR libstdc++/12065
1578 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1579 Change return value from streampos to streamoff.
1580 (__basic_file::seekpos): Delete.
1581 * config/io/basic_file_stdio.h: Same.
1582 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1583 * include/Makefile.am (bits_headers): Add bits/postypes.h.
1584 * include/bits/char_traits.h: Include bits/postypes.h instead of
1585 bits/fpos.h.
1586 * include/bits/fstream.tcc (basic_filebuf::open,
1587 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1588 values, use == and != instead.
1589 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1590 to pos_type.
1591 (basic_filebuf::imbue): Don't use ! on pos_type values, use
1592 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1593 * include/bits/postypes.h: New file.
1594 Add __streamoff_base_type typedef, streamsize.
1595 (streamoff, streampos, wstreampos): Define typedefs, with
1596 streamoff defined as...
1597 (streamoff): New class. Document implementation defined
1598 aspects.
1599 (fpos): New implementation. Document implementation defined
1600 aspects.
1601 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1602 explicit conversion from pos_type to off_type.
1603 * include/std/std_iosfwd.h: Include bits/postypes.h instead
1604 of bits/fpos.h.
1605 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1606 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1607 * testsuite/27_io/fpos/11450.cc: New test.
1608 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1609 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1610 * testsuite/27_io/types/3.cc: New test.
1611
16122003-10-16 Benjamin Kosnik <bkoz@redhat.com>
f883c8dc
PC
1613
1614 * configure.host: Remove fpos_include_dir.
1615 * configure.ac: Remove FPOS_INC_SRCDIR.
1616 * configure: Regenerate.
1617 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1618 * aclocal.m4: Regenerate.
1619 * include/Makefile.am (host_headers): Remove fpos.h.
1620 (bits_headers): Add postypes.h.
1621 * include/Makefile.in: Regenerate.
1622 * config/os/gnu-linux/fposh: Remove.
1623 * config/os/generic/fpos.h: Remove.
1624
1625 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1626 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1627 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1628 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1629 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1630 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1631 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1632 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1633 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1634 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1635 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1636 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1637 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1638 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1639 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1640 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1641 * testsuite/27_io/objects/char/10.cc: Same.
4c4809c1 1642
0392ff98
PC
16432003-10-16 Paolo Carlini <pcarlini@suse.de>
1644
1645 * src/locale.cc (locale::locale(const char*)): ... one
1646 more comparison missed in the previous commit.
1647
d2f663d1
BK
16482003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1649
5d78fe72
BK
1650 * acconfig.h: Add HAVE_DRAND48.
1651 * crossconfig.m4: Remove ISATTY.
d2f663d1
BK
1652 * aclocal.m4: Regenerated.
1653 * config.h.in: Regenerated.
5d78fe72 1654 * configure: Regenerated.
d2f663d1 1655
068c84e3
BI
16562003-10-16 Bernardo Innocenti <bernie@develer.com>
1657
1658 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1659 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1660 Document SMP safeness of asm macros.
1661
eaed902b
PC
16622003-10-16 Paolo Carlini <pcarlini@suse.de>
1663
1664 * src/locale.cc (locale::locale(const char*)): Tweak
1665 a couple of comparisons to use basic_string operators.
1666
f991b1d8
PC
16672003-10-16 Paolo Carlini <pcarlini@suse.de>
1668
1669 PR libstdc++/12540
1670 * config/locale/gnu/monetary_members.cc
1671 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1672 Don't leak memory if new throws.
1673 * src/locale.cc (locale::locale(const char*)): In order not
1674 to leak memory in case new throws, use a basic_string type
1675 for __res too and avoid strdup.
1676
84e72d83
JB
16772003-10-14 Jeff Bailey <jbailey@nisa.net>
1678
1679 PR libstdc++/12562
1680 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1681 * configure: Regenerate.
1682
be3faf89
CW
16832003-10-14 Carlo Wood <carlo@alinoe.com>
1684
1685 PR libstdc++/12600
1686 * include/bits/demangle.h (session<Allocator>::
1687 decode_unqualified_name(string_type& output)): Fail on a
1688 <operator-name> when decoding <template-argument>.
1689 * testsuite/demangle/regression/cw-15.cc: New.
1690
1638f5c9
PC
16912003-10-14 Paolo Carlini <pcarlini@unitus.it>
1692
1693 PR libstdc++/11480
1694 * include/bits/stl_algo.h (unique): Fix.
1695 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1696 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1697 * testsuite/25_algorithms/unique/2.cc: New.
1698
42db0f21
PC
16992003-10-14 Paolo Carlini <pcarlini@unitus.it>
1700
1701 * src/localename.cc (_M_replace_categories, M_replace_facet):
1702 Const-ify a couple of variables.
1703
9dccaa6b
PR
17042003-10-14 Petur Runolfsson <peturr02@ru.is>
1705 Andreas Tobler <a.tobler@schweiz.ch>
1706
1707 * src/locale.cc (locale::_S_initialize): Workaround a confusion
1708 of the use of the gthr API when __gthread_active_p() returns true.
1709
a62e7311
PR
17102003-10-12 Petur Runolfsson <peturr02@ru.is>
1711 Paolo Carlini <pcarlini@unitus.it>
1712
1713 PR libstdc++/11460
1714 * src/strstream.cc (pbackfail): Fix to use to_int_type.
1715 * testsuite/backward/11460.cc: New, from the PR.
1716
f5677b15
PC
17172003-10-12 Paolo Carlini <pcarlini@unitus.it>
1718
1719 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1720 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1721 * include/bits/basic_string.tcc: Likewise.
1722 * include/bits/ios_base.h: Likewise.
1723 * include/bits/istream.tcc: Likewise.
1724 * include/bits/locale_facets.tcc: Likewise.
1725 * include/bits/ostream.tcc: Likewise.
1726 * include/bits/stl_function.h: Likewise.
1727 * include/bits/stl_multiset.h: Likewise.
1728 * include/bits/stl_pair.h: Likewise.
1729 * include/bits/stl_set.h: Likewise.
1730 * include/bits/streambuf_iterator.h
1731 * include/std/std_iosfwd.h: Likewise.
1732 * include/std/std_istream.h: Likewise.
1733 * include/std/std_sstream.h: Likewise.
1734 * include/std/std_streambuf.h: Likewise.
1735 * src/ios.cc: Likewise.
1736 * include/bits/c++config:
1737 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1738 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1739 dg-error directive due to removal of a blank line.
1740 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1741
c411fdae
AT
17422003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
1743 Paolo Carlini <pcarlini@unitus.it>
1744
1745 PR libstdc++/11844/11740 (cont)
1746 * config/os/generic/ctype_inline.h (ctype<char>::is):
1747 Generically, use a bitmasksize of 15 (instead of 10);
1748 Fix the logic to actually return (M & m) != 0 as per
1749 22.2.1.1.2.
1750
796d7a86
BI
17512003-10-11 Bernardo Innocenti <bernie@develer.com>
1752
1753 * crossconfig.m4 (*-uclinux*): New target.
1754 * configure: Regenerate.
1755
6b61bca4
PC
17562003-10-10 Paolo Carlini <pcarlini@unitus.it>
1757
1758 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
1759 Avoid unnecessarily calling __builtin_alloca and dealing
1760 explicitly with width() smaller than zero.
1761 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
1762 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
1763 const char*), operator<<(basic_ostream<char, _Traits>&,
1764 const char*), operator<<(basic_ostream, const basic_string&)):
1765 Likewise.
1766
5aaa2108
BK
17672003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1768
1769 * config/linker-map.gnu: Make more *_type_info bits visible.
1770 Move new/delete bits back into GLIBCXX space.
1771
1772 * include/bits/locale_classes.h: Move _M_id out of line, so that
1773 locale::id::_S_highwater can be removed from the export list.
1774 * src/locale.cc (locale::id::_M_id): Define.
1775
64833be0
AT
17762003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
1777
1778 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
1779 SPARC64.
1780
2f800bcc
PC
17812003-10-09 Paolo Carlini <pcarlini@unitus.it>
1782
1783 PR libstdc++/11844
1784 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
1785 to conform to the requirements of 22.2.1.
1786 * config/os/bsd/freebsd/ctype_base.h: Likewise.
1787 * config/os/djgpp/ctype_base.h: Likewise.
1788 * config/os/generic/ctype_base.h: Likewise.
1789 * config/os/gnu-linux/ctype_base.h: Likewise.
1790 * config/os/hpux/ctype_base.h: Likewise.
1791 * config/os/irix/irix6.5/ctype_base.h: Likewise.
1792 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
1793 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
1794 * testsuite/22_locale/ctype/11844.cc: New.
1795
1796 * config/locale/generic/ctype_members.cc (do_is):
1797 Generically, use a bitmasksize of 15 (instead of 10), since
1798 we don't know the numerical encoding of the various categories
1799 in the underlying /usr/include/ctype.h.
1800
93d04686
BK
18012003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1802
1803 * src/string-inst.cc: Prune.
1804 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1805 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1806
18072003-10-09 Petur Runolfsson <peturr02@ru.is>
1808
1809 * src/io-inst.cc: Don't include iostream.
1810 * include/bits/ios_base.h (ios_base::failure): Use string.
1811 * src/Makefile.am: Add ios_failure.cc.
1812 * src/Makefile.in: Regenerate.
1813 * src/ios.cc: Move ios_base::failure definitions to...
1814 * src/ios_failure.cc: ...here. New.
1815
1a139c59
PR
18162003-10-09 Petur Runolfsson <peturr02@ru.is>
1817
1818 PR libstdc++/9874
1819 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1820 Move code needed for both seekoff and seekpos...
1821 (basic_filebuf::_M_seek): ...here. New function.
1822 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1823 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1824 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1825
1826 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1827
a761195b
PC
18282003-10-08 Paolo Carlini <pcarlini@unitus.it>
1829
1830 * include/bits/locale_facets.tcc: More minor cosmetic
1831 changes and const-ifications of some variables.
1832
905df1fb
PC
18332003-10-07 Paolo Carlini <pcarlini@unitus.it>
1834
1835 * include/bits/locale_facets.tcc: Minor cosmetic changes
1836 and const-ifications of some variables.
1837
1838 * include/bits/locale_facets.tcc
1839 (money_get::do_get(..., string_type&)): Simplify an if-else.
1840
ba9b12d1
PC
18412003-10-06 Paolo Carlini <pcarlini@unitus.it>
1842
1843 PR libstdc++/11740
1844 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1845 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1846 * config/locale/generic/ctype_members.cc: Same.
1847 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1848
e4f7d0a1
PC
18492003-10-06 Paolo Carlini <pcarlini@unitus.it>
1850
1851 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1852 Improve performance-wise: avoid one traits::copy, avoid
1853 the __builtin_alloca, streamline.
1854
5b577977
PC
18552003-10-05 Paolo Carlini <pcarlini@unitus.it>
1856
1857 * include/bits/locale_facets.tcc
1858 (num_put::do_put(..., bool)): Prefer ?: to if-else.
1859 (time_get::_M_extract_name): Qualify min with std::.
1860 (__pad<>::_S_pad): Constify two variables; simplify an
1861 if-else statement factoring out some code.
1862
1863 * include/bits/locale_facets.tcc: Minor cosmetic changes.
1864
dff186db
PC
18652003-10-04 Paolo Carlini <pcarlini@unitus.it>
1866
1867 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1868 Constify a couple of variables.
1869 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1870 ++__beg to *__beg++.
1871
2811b823
PC
18722003-10-04 Paolo Carlini <pcarlini@unitus.it>
1873 Petur Runolfsson <peturr02@ru.is>
1874
1875 * include/ext/stdio_sync_filebuf.h: Don't include the whole
1876 <fstream>, only <streambuf> and <cstdio>.
1877
184b434c
PC
18782003-10-04 Paolo Carlini <pcarlini@unitus.it>
1879
1880 PR libstdc++/12206
1881 * include/bits/fstream.tcc (imbue): In case a codecvt facet
1882 is not available, set _M_codecvt = 0.
1883 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1884
cafc7337
HB
18852003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
1886
1887 PR libstdc++/12451
1888 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1889
bb1b12ec
BK
18902003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1891
1892 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1893 * src/locale.cc: Define.
1894 * src/localename.cc: Use it.
1895 * config/locale/generic/time_members.h: Same.
1896 * config/locale/gnu/messages_members.h: Same.
1897 * config/locale/gnu/time_members.h: Same.
1898
8dcaff28
PC
18992003-10-02 Paolo Carlini <pcarlini@unitus.it>
1900
1901 PR libstdc++/12232
1902 * include/bits/fstream.tcc (seekoff): Ignore the openmode
1903 argument; simplify.
1904 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1905 seekpos): Remove the openmode argument.
1906 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1907 seekpos): Remove redundant placeholder for the openmode argument.
1908 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1909 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1910 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1911 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1912 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1913
5c109a17
BK
19142003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1915
1916 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1917 (locale::facet::_S_get_c_locale): Same.
1918
8ae81136
BK
19192003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1920
1921 * config/linker-map.gnu: Export _S_get_c_locale instead of
1922 _S_c_locale object.
1923
19242003-10-02 Petur Runolfsson <peturr02@ru.is>
1925
1926 * config/locale/generic/c_locale.cc
1927 (category_names, locale::_S_categories): Const qualify.
1928 * config/locale/gnu/c_locale.cc: Same.
1929 * config/locale/generic/time_members.h (__timepunct::__timepunct):
1930 Copy string contents before assigning to _M_name_timepunct,
1931 qualify strcpy and strlen with std::.
1932 * config/locale/gnu/time_members.h: Same.
1933 * config/locale/gnu/messages_members.h (messages::messages):
1934 Copy string contents before assigning to _M_name_messages,
1935 qualify strcpy and strlen with std::.
1936 * config/os/gnu-linux/ctype_noninline.h
1937 (ctype<char>::classic_table()): Don't call locale::classic().
1938 * include/bits/locale_classes.h
1939 (locale::_S_categories): Const qualify.
1940 (locale::_S_once, locale::_S_initialize_once,
1941 locale::facet::_S_once, locale::facet::_S_initialize_once,
1942 locale::facet::_S_get_c_locale): Declare.
1943 (locale::_S_initialize): Don't define.
1944 (locale::facet::_S_c_locale): Make private.
1945 (locale::facet::_S_c_name): Same, const qualify.
1946 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1947 parameters, add throw() specifier.
1948 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1949 messages::_M_name_messages): Const qualify.
1950 * src/locale.cc
1951 (locale::_S_once, locale::facet::_S_once): Define.
1952 (locale::classic): Move initialization code...
1953 (locale::_S_initialize_once): ...here.
1954 (locale::_S_initialize): Call _S_initialize_once through
1955 __gthread_once.
1956 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1957 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1958 __gthread_once before returning _S_c_locale.
1959 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1960 Drop unused parameters, add throw() specifier, don't initialize
1961 locale::facet::_S_c_locale and _S_c_name.
1962
1963 * config/locale/generic/messages_members.h:
1964 Replace _S_c_locale with _S_get_c_locale().
1965 * config/locale/gnu/c_locale.cc: Same.
1966 * config/locale/gnu/messages_members.h: Same.
1967 * config/locale/gnu/numeric_members.cc: Same.
1968 * config/locale/gnu/time_members.cc: Same.
1969 * config/os/gnu-linux/ctype_noninline.h: Same.
1970 * include/bits/locale_facets.h: Same.
1971 * include/bits/locale_facets.tcc: Same.
1972 * src/codecvt.cc: Same.
1973 * src/ctype.cc: Same.
1974
4a035cf7
CW
19752003-10-02 Carlo Wood <carlo@alinoe.com>
1976
1977 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1978 Decode symbols that start with _GLOBAL_[ID]_ differently: the
1979 trailing part ends with a terminating zero and is not necessarily an
1980 encoding.
1981 * src/demangle.cc (): Same.
1982 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1983
86b4ab73
PC
19842003-10-02 Paolo Carlini <pcarlini@unitus.it>
1985
1986 * testsuite/22_locale/locale/cons/12438.cc: Use
1987 __gnu_test::try_named_locale("").
1988
222a5b1d
RO
19892003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1990
1991 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1992 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1993 instead of drand48.
1994 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1995 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1996 HAVE_DRAND48.
1997 * config.h.in, configure: Regenerate.
1998 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1999 lrand48 use.
2000
e39dd1ce
NM
20012003-10-01 Nathan Myers <ncm@cantrip.org>
2002
2003 * include/bits/locale_facets.tcc (time_put::put): Avoid
2004 expensive *__s++, in favor of *__s, ++__s.
2005
530ce551
PC
20062003-10-01 Paolo Carlini <pcarlini@unitus.it>
2007
2008 * include/bits/locale_facets.tcc (time_put::put): Minor
2009 tweak to the previous commit.
2010
52a16d08
PC
20112003-10-01 Paolo Carlini <pcarlini@unitus.it>
2012
2013 PR libstdc++/12439
2014 * include/bits/locale_facets.tcc (time_put::put): Deal
2015 with the three issues pointed out by the PR.
2016 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
2017 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
2018 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
2019 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
2020 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
2021
ae7c3ba5
PC
20222003-09-30 Paolo Carlini <pcarlini@unitus.it>
2023
2024 * include/bits/stl_algo.h: Minor cosmetic reformattings.
2025
cbc6c296
PC
20262003-09-30 Paolo Carlini <pcarlini@unitus.it>
2027
2028 * include/bits/stl_algo.h (search_n): Tweak, to spare the
2029 first --__n.
2030
2ea247d3
PC
20312003-09-30 Paolo Carlini <pcarlini@unitus.it>
2032
2033 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
2034 qualify exception name.
2035
155f6fbb
PC
20362003-09-30 Paolo Carlini <pcarlini@unitus.it>
2037
2038 PR libstdc++/12438
2039 * include/bits/locale_facets.tcc (locale::combine): Don't
2040 leak memory if _M_replace_facet throws.
2041 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
2042
2043 * include/bits/locale_classes.h (locale::locale(const locale&,
2044 _Facet*)): Tweak, use consistently _M_remove_reference.
2045
70863cbd
PC
20462003-09-30 Paolo Carlini <pcarlini@unitus.it>
2047
2048 PR libstdc++/12352 (cont)
2049 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
2050 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
2051 calls fail.
2052 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
2053 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
2054 !_M_caches, !_M_names.
2055
51ac684e
RO
20562003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2057
2058 * configure.host: Handle Solaris 2.5 micro releases explicitly.
2059 Remove wildcards from Solaris 2.6, 7-9: there were no
2060 micro releases.
2061 Treat Solaris 10 and up like 7-9.
2062
6821a40b
PC
20632003-09-29 Paolo Carlini <pcarlini@unitus.it>
2064
2065 * include/bits/stl_algo.h (search_n): Improve the previous
2066 fix as suggested by Martin.
2067
e5012ba5
PC
20682003-09-29 Paolo Carlini <pcarlini@unitus.it>
2069
2070 PR libstdc++/12296
2071 * include/bits/istream.tcc (peek): Set eofbit if sgetc
2072 returns eof.
2073 * testsuite/27_io/basic_istream/peek/char/12296.cc:
2074 New, from the PR.
2075
20762003-09-29 Nathan Myers <ncm@cantrip.org>
2077 Paolo Carlini <pcarlini@unitus.it>
2078
2079 PR libstdc++/11400
2080 * include/bits/stl_algo.h (search_n):
2081 Use iterator_traits<>::difference_type for __n.
2082 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
2083
6cd6aed7
PC
20842003-09-29 Paolo Carlini <pcarlini@unitus.it>
2085
2086 * testsuite/22_locale/locale/cons/12352.cc:
2087 Use __attribute__((unused)) for test.
2088
33b16690
UW
20892003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
2090
2091 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
2092 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
2093 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
2094
2d07c3f5
BS
20952003-09-26 Brad Spencer <spencer@infointeractive.com>
2096
2097 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
2098 Explicitly qualify exceptions.
2099 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
2100 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2101 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2102 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2103
91675f9d
PC
21042003-09-25 Paolo Carlini <pcarlini@unitus.it>
2105
2106 PR libstdc++/12352
2107 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
2108 size_t)): Don't leak if memory allocations for _M_facets,
2109 _M_caches, and _M_names fail.
2110 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
2111 (locale::_Impl::_M_replace_categories(const _Impl*,
2112 category)): Ditto.
2113 (locale::_Impl::_M_install_facet(const locale::id*,
2114 const facet*)): Ditto.
2115 * include/bits/locale_classes.h (locale::locale(const locale&,
2116 _Facet*)): Don't leak memory.
2117 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
2118
2119 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
2120 bool)): Qualify with std:: strcpy, tweak.
2121 * include/bits/locale_classes.h
2122 (locale::_Impl::_M_check_same_name): Qualify strcmp.
2123
2b1be54b
BS
21242003-09-25 Brad Spencer <spencer@infointeractive.com>
2125
2126 PR libstdc++/6072
775ee48e
BK
2127 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
2128 wcstof, iswblank.
2b1be54b
BS
2129 * aclocal.m4: Regenerate.
2130 * config.h.in: Regenerate.
2131 * configure: Regenerate.
2132 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
2133 * config/io/basic_file_stdio.cc: Guard unistd.h.
2134 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
2135 * include/c_std/std_cwchar.h: Same.
2136 * include/c_std/std_cwctype.h: Same.
2137
465ad0c7
BK
21382003-09-25 Benjamin Kosnik <bkoz@redhat.com>
2139
775ee48e 2140 PR libstdc++/11065
465ad0c7
BK
2141 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
2142 * config/locale/generic/ctype_members.cc: Same.
2143 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
2144 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
2145
2146 * config/os/generic/ctype_inline.h: Update.
2147
7b865c36
UW
21482003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2149
2150 * src/Makefile.am (version_dep): New variable.
2151 (libstdc___la_DEPENDENCIES): Use it to add dependency on
2152 libstdc++-symbol.ver only when using symbol versioning.
2153 * src/Makefile.in: Regenerate.
2154
11f10e6b
BK
21552003-09-23 Benjamin Kosnik <bkoz@redhat.com>
2156
2157 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
2158 * testsuite/testsuite_hooks.h: Same.
2159 * testsuite/*/*.cc: Same.
2160
89ec0c4b
PR
21612003-09-22 Petur Runolfsson <peturr02@ru.is>
2162
2163 * include/bits/istream.tcc (basic_istream::read,
2164 basic_istream::readsome, basic_istream::putback,
2165 basic_istream::unget, operator>>(basic_istream, CharT)):
2166 Avoid redundant setstate(failbit) calls when sentry::operator bool()
2167 returns false.
2168
dc25fbc7
CW
21692003-09-22 Carlo Wood <carlo@alinoe.com>
2170
2171 PR libstdc++/12365
2172 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
2173 char const*, int, int)): Remove unused identifier
2174 cv_qualifier for overloaded constructor.
2175
b2bc3339
BK
21762003-09-18 Benjamin Kosnik <bkoz@redhat.com>
2177
2178 PR libstdc++/11504
2179 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
2180 WARN_FLAGS, remove -Wno-format.
2181 * aclocal.m4: Regenerate.
2182 * configure: Regenerate.
2183
0b5ce4f1
PR
21842003-09-18 Petur Runolfsson <peturr02@ru.is>
2185
2186 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
2187 * config/io/basic_file_stdio.h: Same.
2188 * include/std/std_fstream.h (__ctype_type): Delete.
2189 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
2190
43892f8c
BK
21912003-09-17 Benjamin Kosnik <bkoz@redhat.com>
2192
2193 PR libstdc++/12239
2194 * configure.host (abi_baseline_pair): Error out on solaris2
2195 configurations without a minor version number.
2196
4bc8ae23
PE
21972003-09-13 Phil Edwards <phil@codesourcery.com>
2198
2199 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
2200 if man pages are on.
2201 * docs/doxygen/user.cfg.in: And here.
2202
dbc66058
DJ
22032003-09-10 Daniel Jacobowitz <drow@mvista.com>
2204 Andreas Jaeger <aj@suse.de>
2205
2206 PR libstdc++/12189
2207 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
2208 abi_check if cross compiling.
2209 * aclocal.m4: Regenerated.
2210 * configure: Regenerated.
2211
520abf69
JO
22122003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
2213
2214 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
2215 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
2216 (__cxa_vec_new3): Likewise.
2217
8c8dec01
PR
22182003-09-10 Petur Runolfsson <peturr02@ru.is>
2219
2220 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2221 Use codecvt::length to handle variable-width stateless encodings
2222 correctly.
2223 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2224 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2225
80e46d77
AM
22262003-09-10 Alan Modra <amodra@bigpond.net.au>
2227
2228 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2229 rather than or'ing.
2230
e517f636
AM
22312003-09-09 Alan Modra <amodra@bigpond.net.au>
2232
2233 * configure: Regenerate.
2234
263594d2
DE
22352003-09-09 David Edelsohn <edelsohn@gnu.org>
2236
2237 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2238 qualifier from _S_synced_with_stdio.
2239
22402003-09-09 Bernardo Innocenti <bernie@develer.com>
e7f115de
BI
2241
2242 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2243
f1813b69
PR
22442003-09-04 Petur Runolfsson <peturr02@ru.is>
2245
2246 PR libstdc++/9028
2247 * include/bits/fstream.tcc
2248 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2249 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2250 _M_ext_buf_size, _M_ext_next and _M_ext_end.
2251 (basic_filebuf::underflow): Handle variable-width stateless
2252 encodings (codecvt::encoding() == 0), including UTF-8.
2253 * include/std/std_fstream.h (basic_filebuf):
2254 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2255 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2256 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2257 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2258 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2259 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2260 * testsuite/27_io/objects/wchar_t/12.cc: New test.
2261 * testsuite/27_io/objects/wchar_t/13.cc: New test.
2262
7976070c
JW
22632003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
2264
2265 * docs/html/faq/index.html: Note that a namespace alias can't be
2266 used when specialising templates in extension namespace.
2267 * docs/html/faq/index.txt: Regenerate.
2268
149639d4
PR
22692003-09-03 Petur Runolfsson <peturr02@ru.is>
2270
2271 PR libstdc++/12048
2272 * include/ext/stdio_sync_filebuf.h
2273 (stdio_sync_filebuf::_M_unget_buf): Declare it.
2274 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2275 (stdio_sync_filebuf::uflow): Store the returned character in
2276 _M_unget_buf.
2277 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2278 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2279 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2280 _M_unget_buf, if any, else eof().
2281 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2282 _M_unget_buf, if any, else eof().
2283 * testsuite/27_io/objects/char/12048.cc: Rename to...
2284 * testsuite/27_io/objects/char/12048-1.cc: ...this.
2285 * testsuite/27_io/objects/char/12048-2.cc: New test.
2286 * testsuite/27_io/objects/char/12048-3.cc: New test.
2287 * testsuite/27_io/objects/char/12048-4.cc: New test.
2288 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2289 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2290 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2291 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2292 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2293 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2294 * testsuite/ext/stdio_sync_filebuf_char.cc
2295 (test02, test03, test04, test05): New tests.
2296 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2297 (test02, test03, test04, test05): New tests.
2298
22992003-09-03 Petur Runolfsson <peturr02@ru.is>
2300
2301 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2302 stringbuf or strstreambuf. Fix typos.
2303
3660e02f
PE
23042003-09-02 Phil Edwards <phil@codesourcery.com>
2305
2306 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
2307 appropriately.
2308 * config.h.in: Add _GLIBCXX_HOSTED.
2309 * libsupc++/eh_term_handler.cc: Test it here; initialize
2310 __terminate_handler to std::abort if freestanding.
2311 * aclocal.m4, configure: Regenerated.
2312 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
2313
a3aff86a
NM
23142003-08-29 Nathan Myers <ncm@cantrip.org>
2315
2316 PR libstdc++/11990
2317 * include/bits/locale_facets.tcc (__pad): delete dead code.
2318
f5cf58dd
AM
23192003-08-28 Alan Modra <amodra@bigpond.net.au>
2320
2321 * configure.ac: Test $with_cross_host against $build_alias, not $build.
2322 * configure: Regenerate.
2323
3bedd161
PR
23242003-08-27 Petur Runolfsson <peturr02@ru.is>
2325
2326 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2327 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2328
ca618b60
PE
23292003-08-27 Phil Edwards <pme@gcc.gnu.org>
2330
2331 * Makefile.am: Remove trailing whitespace. Remove needless
2332 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
2333 * include/Makefile.am: Likewise.
2334 * libmath/Makefile.am: Likewise.
2335 * libsupc++/Makefile.am: Likewise.
2336 * po/Makefile.am: Likewise.
2337 * src/Makefile.am: Likewise.
2338 * testsuite/Makefile.am: Likewise.
2339
2340 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2341 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2342 testsuite/Makefile.in: Regenerated.
2343
37e0ff11
PE
23442003-08-27 Phil Edwards <pme@gcc.gnu.org>
2345
2346 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
2347 includedir.
2348 * aclocal.m4, configure: Regenerate.
2349
72730fdb
DJ
23502003-08-27 Daniel Jacobowitz <drow@mvista.com>
2351
2352 * acinclude.m4: Include no-executables.m4.
2353 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2354 * aclocal.m4: Regenerated.
2355 * configure: Regenerated.
2356
ec0d7421
DJ
23572003-08-27 Daniel Jacobowitz <drow@mvista.com>
2358
2359 * acinclude.m4: Don't call AC_ISC_POSIX.
2360 * aclocal.m4: Regenerated.
2361 * configure: Regenerated.
2362
92eabea2
PE
23632003-08-27 Phil Edwards <pme@gcc.gnu.org>
2364
2365 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
2366 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
2367 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
2368 used elsewhere in this file.
2369 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
2370 * configure.ac: ...called here to expand all conditionals.
2371 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2372 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
2373 (install-freestanding-headers): New target, a subset of
2374 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
2375
2376 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2377 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2378 src/Makefile.in, testsuite/Makefile.in: Regenerated.
2379
a43d13fb
PE
23802003-08-26 Phil Edwards <pme@gcc.gnu.org>
2381
2382 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
2383 pathnames from generated tag file.
2384
82ba99d5
PE
23852003-08-26 Phil Edwards <pme@gcc.gnu.org>
2386
2387 * Makefile.am: Add comment.
2388 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
2389 SUBDIRS variables.
2390 * configure.ac: Use them both here, instead of hardcoded lists.
2391
2392 * fragment.am: Add STAMP varaible.
2393 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
2394 instead of @LN_S@.
2395 (stamp-*): Move file creation rule outside of 'if' branches to
2396 ensure the stamp-* files are actually updated. Use $(STAMP).
2397 * src/Makefile.am: Remove now-nonexistant variable.
2398 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
2399 for -prefer-pic.
2400 * po/Makefile.am: Include same fragment as all the others.
2401
2402 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2403 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
2404
73780bfe
LR
24052003-08-26 Loren J. Rittle <ljrittle@acm.org>
2406
2407 * testsuite/data/cin_unget-1.txt: New.
2408 * testsuite/27_io/objects/char/12048.cc: New.
2409
7e2055ec
ZW
24102003-08-25 Zack Weinberg <zack@codesourcery.com>
2411
2412 * config/os/hpux/os_defines.h: Unconditionally define
2413 _GLIBCXX_GTHREAD_USE_WEAK to 0.
2414
a6f3e253
GK
24152003-08-19 Geoffrey Keating <geoffk@apple.com>
2416
2417 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2418 crosses to Darwin targets.
2419 * configure: Regenerate.
2420
1b391ba9
PR
24212003-08-19 Petur Runolfsson <peturr02@ru.is>
2422
7e2055ec
ZW
2423 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2424
77e862fa
PE
24252003-08-17 Phil Edwards <pme@gcc.gnu.org>
2426
2427 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
2428 in the patch from 3 minutes ago. Boy, is my face red.
2429 * configure: At least I remembered to regenerate this.
2430
0df3f383
PE
24312003-08-17 Phil Edwards <pme@gcc.gnu.org>
2432
2433 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
2434 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
2435 things from the top level.
2436 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
2437 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2438 (currently unused). Strip the fake-VPATH shell fragment from
2439 automake-generated rules, if present.
2440 * linkage.m4: Add comment.
2441
2442 * fragment.am: New file, containing factored-out common settings.
2443 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
2444 * Makefile.am: Include fragment.am. Remove common variables.
2445 * include/Makefile.am: Likewise.
2446 * libmath/Makefile.am: Likewise.
2447 * libsupc++/Makefile.am: Likewise.
2448 * po/Makefile.am: Likewise. Print rules during check.
2449 * src/Makefile.am: Likewise.
2450 * testsuite/Makefile.am: Likewise.
2451
2452 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2453 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2454 src/Makefile.in, testsuite/Makefile.in: Regenerate.
2455
e885821f
JL
24562003-08-11 John Levon <levon@movementarian.org>
2457
2458 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2459 remaining places for the name change from GLIBCPP_FORCE_NEW
2460 to GLIBCXX_FORCE_NEW
2461
2803847d
BK
24622003-08-11 Benjamin Kosnik <bkoz@redhat.com>
2463
2464 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
7e2055ec 2465 typedefs to num_*.
2803847d
BK
2466 * include/bits/basic_ios.tcc: Same.
2467 * include/bits/istream.tcc: Same.
2468 * include/bits/locale_facets.h: Same.
2469 * include/bits/ostream.tcc: Same.
2470 * include/std/std_istream.h: Same.
2471 * include/std/std_ostream.h: Same.
2472 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2473
2474 * include/ext/rope: Remove build warning.
7e2055ec 2475
51c1f3c9
AJ
24762003-08-11 Andreas Jaeger <aj@suse.de>
2477
2478 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2479 to make SMP-safe.
2480 * include/Makefile.in: Regenerated.
2481
f6dda651
PE
24822003-08-11 Phil Edwards <pme@gcc.gnu.org>
2483
2484 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
2485 when calling AC_PROG_CC.
2486 * aclocal.m4, configure: Regenerate.
2487
fbe057bb
PE
24882003-08-11 Phil Edwards <pme@gcc.gnu.org>
2489
2490 * acinclude.m4: Properly quote variable which will be expanded
2491 inside makefiles. Use CXX instead of CC to extract compiler info.
2492 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
2493 correct form in PACKAGE.
2494 * aclocal.m4, configure: Regenerate.
2495
258e7dbc
BK
24962003-08-08 Benjamin Kosnik <bkoz@redhat.com>
2497
2498 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2499 (check-abi-verbose): Same.
2500 * testsuite/testsuite_performance.h (report_performance): Same.
7e2055ec 2501
3e083bea
LR
25022003-08-08 Loren J. Rittle <ljrittle@acm.org>
2503
2504 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2505
5a9ed693
DG
25062003-08-07 Doug Gregor <dgregor@apple.com>
2507
7e2055ec
ZW
2508 * include/bits/char_traits.h (char_traits::not_eof): Match operand
2509 types in ? :.
5a9ed693 2510
4e9ebd4b
BI
25112003-08-07 Bernardo Innocenti <bernie@develer.com>
2512
2513 PR libstdc++/11784
2514 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2515 Replace variants with new BSET-based version.
7e2055ec 2516
a9ebaa2b
CW
25172003-08-07 Carlo Wood <carlo@alinoe.com>
2518
0df3f383 2519 * include/bits/demangle.h: Do not use cctype functions that depend
a9ebaa2b 2520 on locale.
7e2055ec 2521
8b171e55
PE
25222003-08-05 Phil Edwards <pme@gcc.gnu.org>
2523
2524 * configure.in: Rename...
2525 * configure.ac: ...to this.
2526 * docs/html/17_intro/porting.texi: Update name.
2527
2528 * docs/html/17_intro/porting.html: Regenerate.
2529 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2530 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2531 testsuite/Makefile.in: Regenerate (picks up new dependancy).
2532
1260d70f
PE
25332003-08-05 Phil Edwards <pme@gcc.gnu.org>
2534
2535 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
2536 pipe, open the window to let out the fumes, redo the option-handling
2537 logic to properly execute the detection test.
2538 * aclocal.m4, configure: Regenerate.
2539
ff66d28f
PE
25402003-08-04 Phil Edwards <pme@gcc.gnu.org>
2541
2542 Convert to new autotools.
2543 * acconfig.h: Update with correct names.
2544 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
2545 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
2546 * configure.in: Update. Split hardcoded cross-configury settings
2547 out to...
2548 * crossconfig.m4: ...here. New file. Contents untouched.
2549 * acinclude.m4: Reorganize and rewrite as needed. Split large
2550 chunks out to...
2551 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
2552 Contents untouched.
2553 * scripts/testsuite_flags.in: Update.
2554
2555 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
2556 variables (already generated by automake).
2557 * include/Makefile.am: Ditto.
2558 * libmath/Makefile.am: Ditto.
2559 * libsupc++/Makefile.am: Ditto.
2560 * po/Makefile.am: Ditto.
2561 * src/Makefile.am: Ditto.
2562
2563 * aclocal.m4: Regenerate using new versions.
2564 * config.h.in: Ditto.
2565 * configure: Ditto.
2566 * Makefile.in: Ditto.
2567 * include/Makefile.in: Ditto.
2568 * libmath/Makefile.in: Ditto.
2569 * libsupc++/Makefile.in: Ditto.
2570 * po/Makefile.in: Ditto.
2571 * src/Makefile.in: Ditto.
2572 * testsuite/Makefile.in: Ditto.
2573
5e7c251d
PE
25742003-08-04 Phil Edwards <pme@gcc.gnu.org>
2575
2576 * po/libstdc++.pot: Re-extract/regenerate.
2577
caf21254
PE
25782003-08-04 Phil Edwards <pme@gcc.gnu.org>
2579
2580 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2581 Remove unneeded variable assignments. Leave them for automake.
2582 * testsuite/lib/libstdc++-v3.exp: Rename...
2583 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
2584 accordingly.
2585 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
2586 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
2587 names accordingly.
2588
f7ab5fa4
PE
25892003-08-04 Phil Edwards <pme@gcc.gnu.org>
2590
2591 * docs/doxygen/guide.html: run_doxygen uses bash.
2592 * docs/doxygen/mainpage.html: We'll be shipping tag files.
2593 * docs/doxygen/run_doxygen: Tweaks and improvements.
2594 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
2595 * docs/html/install.html: Update autoconf/automake requirements.
2596 * docs/html/test.html: Add section describing DejaGNU support.
2597 * docs/html/17_intro/confdeps.dot: New file, generates...
2598 * docs/html/17_intro/confdeps.png: ...this new file.
2599 * docs/html/Makefile: Generated here.
2600 * docs/html/17_intro/configury.html: New file.
2601
b3f2a032
PE
26022003-07-31 Phil Edwards <pme@gcc.gnu.org>
2603
2604 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
2605 * testsuite/lib/libstdc++-v3.exp: ...to this.
2606 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
2607
e64a227a
DG
26082003-07-31 Doug Gregor <dgregor@apple.com>
2609
2610 Add user specialization tests.
2611 * testsuite/23_containers/deque/1.cc: New.
2612 * testsuite/23_containers/list/1.cc: New.
2613 * testsuite/23_containers/map/1.cc: New.
2614 * testsuite/23_containers/multimap/1.cc: New.
2615 * testsuite/23_containers/multiset/1.cc: New.
2616 * testsuite/23_containers/set/1.cc: New.
2617 * testsuite/23_containers/vector/1.cc: New.
7e2055ec 2618
17472bb6
BK
26192003-07-31 Benjamin Kosnik <bkoz@redhat.com>
2620
2621 Reshuffle 23_containers testsuite.
7e2055ec 2622 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
17472bb6
BK
2623 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2624 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2625 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2626 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2627 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2628 vector_resize.cc: Split into...
2629 * 23_containers/bitset/cons/1.cc: New.
2630 * 23_containers/bitset/cons/6282.cc: New.
2631 * 23_containers/bitset/count/6124.cc: New.
2632 * 23_containers/bitset/operations/1.cc: New.
2633 * 23_containers/bitset/operations/2.cc: New.
2634 * 23_containers/bitset/test/1.cc: New.
2635 * 23_containers/bitset/to_ulong/1.cc: New.
2636 * 23_containers/deque/cons/1.cc: New.
2637 * 23_containers/deque/cons/2.cc: New.
2638 * 23_containers/deque/operators/1.cc: New.
2639 * 23_containers/list/capacity/1.cc: New.
2640 * 23_containers/list/cons/1.cc: New.
2641 * 23_containers/list/cons/2.cc: New.
2642 * 23_containers/list/cons/3.cc: New.
2643 * 23_containers/list/cons/4.cc: New.
2644 * 23_containers/list/cons/5.cc: New.
2645 * 23_containers/list/cons/6.cc: New.
2646 * 23_containers/list/cons/7.cc: New.
2647 * 23_containers/list/cons/8.cc: New.
2648 * 23_containers/list/cons/9.cc: New.
2649 * 23_containers/list/modifiers/1.cc: New.
2650 * 23_containers/list/modifiers/2.cc: New.
2651 * 23_containers/list/modifiers/3.cc: New.
2652 * 23_containers/list/operators/1.cc: New.
2653 * 23_containers/list/operators/2.cc: New.
2654 * 23_containers/list/operators/3.cc: New.
2655 * 23_containers/list/operators/4.cc: New.
2656 * 23_containers/map/insert/1.cc: New.
2657 * 23_containers/map/operators/1.cc: New.
2658 * 23_containers/map/operators/1_neg.cc: New.
2659 * 23_containers/multiset/insert/1.cc: New.
2660 * 23_containers/priority_queue/members/7161.cc: New.
2661 * 23_containers/queue/members/7157.cc: New.
2662 * 23_containers/set/operators/1_neg.cc: New.
2663 * 23_containers/stack/members/7158.cc: New.
2664 * 23_containers/vector/bool/1.cc: New.
2665 * 23_containers/vector/bool/6886.cc: New.
2666 * 23_containers/vector/capacity/1.cc: New.
2667 * 23_containers/vector/capacity/2.cc: New.
2668 * 23_containers/vector/capacity/8230.cc: New.
2669 * 23_containers/vector/cons/1.cc: New.
2670 * 23_containers/vector/cons/2.cc: New.
2671 * 23_containers/vector/cons/3.cc: New.
2672 * 23_containers/vector/cons/4.cc: New.
2673 * 23_containers/vector/cons/6513.cc: New.
2674 * 23_containers/vector/element_access/1.cc: New.
2675 * 23_containers/vector/modifiers/1.cc: New.
2676 * 23_containers/vector/modifiers/2.cc: New.
2677 * 23_containers/vector/resize/1.cc: New.
7e2055ec 2678
515aab7c
RO
26792003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2680
2681 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2682 dg-options.
2683 * testsuite/thread/pthread2.cc: Likewise.
2684 * testsuite/thread/pthread3.cc: Likewise.
2685 * testsuite/thread/pthread4.cc: Likewise.
2686 * testsuite/thread/pthread5.cc: Likewise.
2687 * testsuite/thread/pthread6.cc: Likewise.
2688 * testsuite/thread/pthread7-rope.cc: Likewise.
2689
1051c718
PE
26902003-07-30 Phil Edwards <pme@gcc.gnu.org>
2691
2692 * include/bits/c++config: Partial reversion (comment placement) of
2693 previous patch.
2694
5f697f7a
BK
26952003-07-30 Benjamin Kosnik <bkoz@redhat.com>
2696
2697 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2698 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2699 (_GLIBCXX_AT_AT): Remove.
2700 (__USE_MALLOC): Remove.
2701 * include/std/std_fstream.h: Modify.
2702 * include/bits/basic_ios.h: Same.
2703 * include/bits/valarray_array.h: Same.
2704 * include/c_std/std_cmath.h: Same.
2705 * include/c_std/cmath.tcc: Same.
2706 * include/std/std_vector.h: Same.
2707 * include/std/std_string.h: Same.
2708 * include/std/std_stack.h: Same.
2709 * include/std/std_queue.h: Same.
2710 * include/std/std_list.h: Same.
2711 * include/std/std_deque.h: Same.
2712 * include/std/std_streambuf.h: Same.
2713 * include/std/std_sstream.h: Same.
2714 * include/std/std_ostream.h: Same.
2715 * include/std/std_istream.h: Same.
2716 * include/bits/valarray_array.tcc: Same, format.
2717
2718 * include/c/std_cctype.h: Fix include guards.
2719 * include/c/std_cerrno.h: Same.
2720 * include/c/std_cfloat.h: Same.
2721 * include/c/std_climits.h: Same.
2722 * include/c/std_clocale.h: Same.
2723 * include/c/std_cmath.h: Same.
2724 * include/c/std_csetjmp.h: Same.
2725 * include/c/std_csignal.h: Same.
2726 * include/c/std_cstdarg.h: Same.
2727 * include/c/std_cstddef.h: Same.
2728 * include/c/std_cstdio.h: Same.
2729 * include/c/std_cstdlib.h: Same.
2730 * include/c/std_cstring.h: Same.
2731 * include/c/std_ctime.h: Same.
2732 * include/c/std_cwchar.h: Same.
2733 * include/c/std_cwctype.h: Same.
2734 * include/c_std/cmath.tcc: Same.
2735 * include/c_std/std_cmath.h: Same.
7e2055ec 2736
b4c70e89
GB
27372003-07-30 Gawain Bolton <gp.bolton@computer.org>
2738
7e2055ec 2739 PR libstdc++/11504.
b4c70e89
GB
2740 * include/bits/stl_tree.h: Replace C-style casts with C++-style
2741 casts. Changes to avoid casting away constness. Eliminate
2742 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
2743 initialization lists. Move out implementation of __black_count()
2744 to...
7e2055ec
ZW
2745 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2746 Rename_Rb_tree_base_iterator::_M_increment() to
2747 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2748 _Rb_tree_decrement.
2749 * config/linker-map.gnu: Add and change symbols here.
b4c70e89 2750
48b3222d
JW
27512003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
2752
2753 * docs/html/22_locale/howto.html: Use locale::classic() instead
2754 of locale("C").
2755
cb584bcf
BK
27562003-07-28 Benjamin Kosnik <bkoz@redhat.com>
2757
2758 * testsuite/testsuite_hooks.h: Remove list include.
2759 (func_callback): Define as unique type, not std::list.
2760 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
2761 * testsuite/libstdc++-v3.dg/dg.exp: Same.
2762 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
7e2055ec 2763 * testsuite/23_containers/bitset_ctor.cc:
cb584bcf
BK
2764 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
2765 * testsuite/18_support/numeric_limits.cc: Same.
2766 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
2767 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
2768 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
2769 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
2770 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
2771 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
2772 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
2773 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
2774 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
2775 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
2776 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
2777 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
2778 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
2779 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
2780 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
2781 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
2782 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
2783 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
2784 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
2785 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
7e2055ec
ZW
2786 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
2787 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
2788 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
2789 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
2790 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
2791 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
2792 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
2793 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
2794 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
2795 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
cb584bcf
BK
2796 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
2797 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
2798 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
2799 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
2800 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
2801 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
2802 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
2803 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
2804 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
2805 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
2806 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
2807 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
2808 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
2809 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
2810 * testsuite/23_containers/bitset_ctor.cc: Same.
2811 * testsuite/23_containers/bitset_shift.cc: Same.
2812 * testsuite/23_containers/vector_ctor.cc: Same.
2813 * testsuite/23_containers/vector_element_access.cc: Same.
2814 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
2815 * testsuite/24_iterators/iterator.cc: Same.
2816 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
2817 * testsuite/25_algorithms/lower_bound.cc: Same.
2818 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
2819 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2820 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2821 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2822 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2823 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2824 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2825 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2826 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2827 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
7e2055ec
ZW
2828 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2829 Same.
2830
1cb1de7e
PE
28312003-07-28 Phil Edwards <pme@gcc.gnu.org>
2832
2833 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2834 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2835 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
2836 GLIBCPP to GLIBCXX (and explain as needed).
2837
6dfe0fc9
PE
28382003-07-28 Phil Edwards <pme@gcc.gnu.org>
2839
2840 * README: Update.
2841
2cb1c928
PE
28422003-07-28 Phil Edwards <pme@gcc.gnu.org>
2843
2844 * testsuite/22_locale/messages/members/char/1.cc,
2845 testsuite/22_locale/messages/members/char/2.cc,
2846 testsuite/22_locale/messages/members/char/3.cc,
2847 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
2848 the origin of LOCALEDIR.
2849 * testsuite/lib/libstdc++-v3.exp: New file.
2850
b66ea7d4
BK
28512003-07-25 Benjamin Kosnik <bkoz@redhat.com>
2852
2853 * include/bits/char_traits.h: Update copyright, tweak.
e884d397 2854 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
b66ea7d4
BK
2855 std types.
2856
d5ff4e3f
MA
28572003-07-24 Matt Austern <austern@apple.com>
2858
2859 * /include/bits/char_traits.h (class char_traits): Put all the
2860 real work into the new class template __gnu_cxx::char_traits.
2861 Gave generic definitions for member functions. Types are taken
2862 from the new class template __gnu_cxx::_Char_types.
2863 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2864 file. Test of std::char_traits<short>, which serves as a test of
2865 the char_traits primary template.
2866
aecf642c
BK
28672003-07-24 Benjamin Kosnik <bkoz@redhat.com>
2868
2869 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2870
28712003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
d7541133 2872
7e2055ec
ZW
2873 * testsuite/23_containers/map_operators.cc: Conform to
2874 container requirement as value must be Assignable.
d7541133 2875
118545ec
AO
28762003-07-23 Alexandre Oliva <aoliva@redhat.com>
2877
2878 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2879 tests not only generation of pch files, but also their use.
2880 * aclocal.m4, configure: Rebuilt.
2881
ff89cb01
SE
28822003-07-23 Steve Ellcey <sje@cup.hp.com>
2883
2884 * config/cpu/hppa/atomicity.h: Change
2885 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2886 to match misc-inst.cc
2887
1143680e
SE
28882003-07-23 Steve Ellcey <sje@cup.hp.com>
2889
2890 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2891 * include/c_std/std_cctype.h: Ditto.
2892 * include/c_std/std_cerrno.h: Ditto.
2893 * include/c_std/std_cfloat.h: Ditto.
2894 * include/c_std/std_climits.h: Ditto.
2895 * include/c_std/std_clocale.h: Ditto.
2896 * include/c_std/std_cmath.h: Ditto.
2897 * include/c_std/std_csetjmp.h: Ditto.
2898 * include/c_std/std_csignal.h: Ditto.
2899 * include/c_std/std_cstdarg.h: Ditto.
2900 * include/c_std/std_cstddef.h: Ditto.
2901 * include/c_std/std_cstdio.h: Ditto.
2902 * include/c_std/std_cstdlib.h: Ditto.
2903 * include/c_std/std_cstring.h: Ditto.
2904 * include/c_std/std_ctime.h: Ditto.
2905 * include/c_std/std_cwchar.h: Ditto.
2906 * include/c_std/std_cwctype.h: Ditto.
2907 * include/std/std_algorithm.h: Ditto.
2908 * include/std/std_bitset.h: Ditto.
2909 * include/std/std_complex.h: Ditto.
2910 * include/std/std_deque.h: Ditto.
2911 * include/std/std_fstream.h: Ditto.
2912 * include/std/std_functional.h: Ditto.
2913 * include/std/std_iomanip.h: Ditto.
2914 * include/std/std_ios.h: Ditto.
2915 * include/std/std_iosfwd.h: Ditto.
2916 * include/std/std_iostream.h: Ditto.
2917 * include/std/std_istream.h: Ditto.
2918 * include/std/std_iterator.h: Ditto.
2919 * include/std/std_limits.h: Ditto.
2920 * include/std/std_list.h: Ditto.
2921 * include/std/std_locale.h: Ditto.
2922 * include/std/std_map.h: Ditto.
2923 * include/std/std_memory.h: Ditto.
2924 * include/std/std_numeric.h: Ditto.
2925 * include/std/std_ostream.h: Ditto.
2926 * include/std/std_queue.h: Ditto.
2927 * include/std/std_set.h: Ditto.
2928 * include/std/std_sstream.h: Ditto.
2929 * include/std/std_stack.h: Ditto.
2930 * include/std/std_stdexcept.h: Ditto.
2931 * include/std/std_streambuf.h: Ditto.
2932 * include/std/std_string.h: Ditto.
2933 * include/std/std_utility.h: Ditto.
2934 * include/std/std_valarray.h: Ditto.
2935 * include/std/std_vector.h: Ditto.
2936
3988d179
DG
29372003-07-22 Doug Gregor <dgregor@apple.com>
2938
2939 * include/bits/basic_string.h (basic_string::insert): Deprecate
2940 GNU extension.
2941
5dfda042
BK
29422003-07-21 Benjamin Kosnik <bkoz@redhat.com>
2943
2944 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2945 paths for libio.
2946 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2947 (test03): Include typeinfo for bad_cast.
2948 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2949 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2950 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2951
3988d179 29522003-07-21 Doug Gregor <dgregor@apple.com>
f345c6b5
DG
2953
2954 * include/bits/boost_concept_check.h:
7e2055ec
ZW
2955 (_EqualityComparableConcept::__constraints): Remove != from the
2956 list of constraints; it is not listed in Table 28 of the C++98
2957 standard.
f345c6b5 2958
2d5f9af2
AJ
29592003-07-18 Andreas Jaeger <aj@suse.de>
2960
2961 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2962 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2963 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2964 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2965
fea4065d 29662003-07-17 Benjamin Kosnik <bkoz@redhat.com>
7e2055ec 2967
fea4065d
BK
2968 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2969 * config/locale/generic/messages_members.h: Tweaks.
2970 * config/locale/generic/monetary_members.cc
2971 (moneypunct::_M_initialize_moneypunct): Use cache.
2972 (moneypunct::~moneypunct): Delete cache.
2973 * config/locale/generic/time_members.cc:
2974 (__timepunct::_M_initialize_timepunct): Use cache.
2975 * config/locale/generic/time_members.h:
2976 (__timepunct::~__timepunct): Delete cache.
2977 (__timepunct::__timepunct): Set cache.
2978 * config/locale/gnu/messages_members.h: Tweaks.
2979 * config/locale/gnu/monetary_members.cc:
2980 (moneypunct::_M_initialize_moneypunct): Use cache.
2981 (moneypunct::~moneypunct): Delete cache.
2982 * config/locale/gnu/time_members.cc:
2983 (__timepunct::_M_initialize_timepunct): Use cache.
2984 * config/locale/gnu/time_members.h:
2985 (__timepunct::~__timepunct): Delete cache.
2986 (__timepunct::__timepunct): Set cache.
2987 * include/bits/locale_facets.h (__timepunct_cache): New.
2988 (__moneypunct_cache): New.
2989 * include/bits/locale_facets.tcc: Tweak.
2990 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2991 * src/locale-inst.cc: Instantiate caches.
2992 * src/globals.cc: Add "C" caches.
2993 * src/localename.cc: Use external "C" caches.
2994
83a279e4
PE
29952003-07-17 Phil Edwards <pme@gcc.gnu.org>
2996
2997 * docs/doxygen/guide.html: Fix typo.
2998
db5eed18
BK
29992003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3000
3001 * include/ext/pod_char_traits.h: Add state template argument.
3002
7942afdc
BK
30032003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3004
3005 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
3006 (num_get::_M_convert_int): To _M_insert_int.
7e2055ec 3007 (num_get::_M_convert_float): To _M_insert_float.
7942afdc
BK
3008 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
3009 Use caches for ctype, num_get.
3010 (num_get::_M_extract_int): Same.
3011 (num_get::get(bool)): Same.
3012 (__verify_grouping): Use size_t.
3013 * src/locale-inst.cc: Update.
3014 * src/locale.cc: Adjust _S_atoms_in.
3015
1ef4a5d4
PE
30162003-07-16 Phil Edwards <pme@gcc.gnu.org>
3017
3018 * docs/doxygen/mainpage.html: Move building/writing instructions...
3019 * docs/doxygen/guide.html: ...to here. New file.
3020
dced0d12
JW
30212003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
3022
3023 * docs/html/ext/howto.html: Update URL for SGI STL docs.
3024 * docs/html/faq/index.html: Same.
3025 * docs/html/faq/index.txt: Regenerate.
3026
e50344b9
PC
30272003-07-16 Paolo Carlini <pcarlini@unitus.it>
3028
3029 PR libstdc++/11528
3030 * include/bits/locale_facets.tcc (money_get::do_get):
3031 Strip only _leading_ zeros.
3032 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
3033 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
3034
94b7906a
GP
30352003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3036
3037 * include/ext/hash_map (class hash_multimap): Remove extra
3038 semicolons from __glibcxx_class_requires3 entries.
3039 * include/ext/hash_set (class hash_set): Ditto.
3040 (class hash_multiset): Ditto.
3041
73a530bd
PR
30422003-07-15 Petur Runolfsson <peturr02@ru.is>
3043
3044 * include/bits/char_traits.h (char_traits<wchar_t>::move):
3045 Change last parameter from int_type to size_t.
3046
119dbb1f
JQ
30472003-07-15 Jerry Quinn <jlquinn@optonline.net>
3048
3049 * include/bits/stl_algo.h (includes, set_union, set_intersection,
7e2055ec
ZW
3050 set_difference, set_symmetric_difference, max_element, min_element,
3051 next_permutation, prev_permutation, find_first_of, find_end):
3052 Document.
119dbb1f 3053 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
7e2055ec 3054 restrictions in docs.
119dbb1f 3055 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
7e2055ec 3056 Document.
119dbb1f
JQ
3057 * docs/doxygen/doxygroups.cc (setoperations): New group.
3058
284f19bf
JQ
30592003-07-15 Jerry Quinn <jlquinn@optonline.net>
3060
7e2055ec 3061 * include/bits/basic_string.h: Document public functions.
284f19bf
JQ
3062 * docs/doxygen/TODO: Update c21 todo.
3063
709e7c9f
JQ
30642003-07-15 Jerry Quinn <jlquinn@optonline.net>
3065
3066 * include/bits/stl_list.h: Document more functions.
3067 * docs/doxygen/TODO: Update c23 todo.
3068
f45e487d
PC
30692003-07-14 Paolo Carlini <pcarlini@unitus.it>
3070
3071 * config/locale/gnu/c_locale.h (__convert_from_v): One more
3072 qualification.
3073
f088510d
PC
30742003-07-14 Paolo Carlini <pcarlini@unitus.it>
3075
3076 * include/bits/stl_tempbuf.h: Qualify free with std::.
3077 * src/locale.cc: Include <cstdlib>, qualify getenv.
3078
2def5b76
PC
30792003-07-14 Paolo Carlini <pcarlini@unitus.it>
3080
3081 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3082 <cstdio>. Qualify names.
3083 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
3084
bda243ec
PC
30852003-07-14 Paolo Carlini <pcarlini@unitus.it>
3086 Nathan C. Myers <ncm-nospam@cantrip.org>
3087
3088 PR libstdc++/11378
3089 * include/std/std_fstream.h (xsputn): Declare only.
3090 * include/bits/fstream.tcc (xsputn): Define, optimize for the
7e2055ec 3091 always_noconv() case: when __n is sufficiently large flush
bda243ec
PC
3092 the buffer and issue a direct write, if possible combining the
3093 two with writev in __basic_file<>::xsputn_2.
3094 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
3095 New, declare.
3096 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
3097 Define.
3098 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
3099 the availability of writev in <sys/uio.h>.
3100 * configure.in: Call here.
3101 * acconfig.h: Add undef for the corresponding symbol.
3102 * aclocal.m4: Regenerate.
3103 * configure: Regenerate.
3104 * config.h.in: Regenerate.
3105 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
3106
3107 * include/std/std_fstream.h (sync): Constify a variable.
3108
c573d965
BK
31092003-07-14 Benjamin Kosnik <bkoz@redhat.com>
3110
3111 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
3112 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
7e2055ec 3113
3ad249b9
GDR
31142003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
3115
3116 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3117 <cstring> and <cstdlib>. Qualify names.
3118
f2ffecb1
MM
31192003-07-13 Mark Mitchell <mark@codesourcery.com>
3120
3121 * config/locale/generic/c_locale.h: Include <cstdlib> and
3122 <cstring>.
3123 * include/bits/boost_concept_check.h: Add this-> to unqualified
3124 method calls.
3125 * include/bits/deque.tcc: Likewise.
3126 * include/bits/locale_facets.h : Likewise.
3127 * include/bits/ostream.tcc: Likewise.
3128 * include/bits/stl_algo.h: Likewise.
3129 * include/bits/stl_bvector.h: Likewise.
3130 * include/bits/stl_deque.h: Likewise.
3131 * include/bits/stl_list.h: Likewise.
3132 * include/bits/stl_tree.h: Likewise.
3133 * include/bits/stl_vector.h: Likewise.
3134 * include/bits/vector.tcc: Likewise.
3135 * include/ext/rope: Likewise.
3136 * include/ext/ropeimpl.h: Likewise.
3137 * include/ext/stdio_filebuf.h: Likewise.
3138
e2fcbaa3
JQ
31392003-07-11 Jerry Quinn <jlquinn@optonline.net>
3140
3141 * include/bits/basic_ios.h (copyfmt): Document.
3142 * include/bits/ios_base.h (event, event_callback, register_callback,
3143 xalloc, iword, pword): Document.
3144 (imbue, ~ios_base): Update docs on callbacks.
3145
58579a27
PE
31462003-07-11 Phil Edwards <pme@gcc.gnu.org>
3147
3148 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
3149 warning messages if the environment cannot support symbol versioning.
3150 (port_specific_symbol_file): It's plural, add an 's' on the end.
3151 * configure.host: Likewise.
3152 * src/Makefile.am: Likewise.
3153 * config/linker-map.gnu: Remove one semicolon, heh.
3154 * scripts/extract_symvers: Don't assume useful 'export' syntax.
3155 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
3156 * aclocal.m4, configure, src/Makefile.in: Regenerated.
3157
cde63840
BK
31582003-07-09 Benjamin Kosnik <bkoz@redhat.com>
3159
3160 * include/bits/locale_facets.tcc: Use function object for
7e2055ec 3161 __use_cache instead of template function. Partially specialize for
cde63840
BK
3162 __numpunct<_CharT>.
3163 * include/bits/locale_classes.h: Update friend declaration for
3164 __use_cache.
3165 (_M_install_cache): No throw exception specs.
3166 * src/locale.cc: Remove __use_cache specializations.
3167 * include/ext/pod_char_traits.h (length): Tweak.
3168 * include/bits/locale_facets.h (__numpunct_cache): Remove
3169 char_type typedef.
3170 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
3171 (pod_long): Remove.
3172 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
3173 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
3174 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
3175 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
3176 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
3177 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
7e2055ec 3178
e7f042e4
JQ
31792003-07-09 Jerry Quinn <jlquinn@optonline.net>
3180
3181 * src/ios.cc (_M_grow_words): Fix spelling.
3182
ca1c7011
GB
31832003-07-09 Gawain Bolton <gp.bolton@computer.org>
3184
3185 * include/bits/stl_tree.h: Move larger member functions in
3186 _Rb_tree_base_iterator and _Rb_tree_node to...
3187 * src/stl_tree.cc: Here.
3188 * src/Makefile.in: Add stl_tree.cc.
3189 * src/Makefile.in: Regenerated.
3190 * config/linker-map.gnu: Add symbols here.
3191
9e7facfd
BK
31922003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3193
3194 * testsuite/ext/pod_char_traits.cc: New.
3195 * include/ext/pod_char_traits.h: New.
3196 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
3197 * include/Makefile.in: Regenerate.
3198 * docs/html/21_strings/howto.html: Update.
7e2055ec 3199
e55dc371
GB
32002003-07-08 Gawain Bolton <gp.bolton@computer.org>
3201
3202 * testsuite/performance/list_create_fill_sort.cc: New.
3203
c094e9b9
BK
32042003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3205
3206 * config/locale/generic/numeric_members.cc: Correct type info.
3207 * config/locale/gnu/numeric_members.cc: Same.
3208 * include/bits/locale_facets.h: Same.
7e2055ec 3209
c094e9b9
BK
3210 * include/bits/char_traits.h: Correct spacing.
3211
3212 * src/locale.cc: Wrap to 80 col.
7e2055ec 3213
a8784c4c
PC
32142003-07-07 Paolo Carlini <pcarlini@unitus.it>
3215
3216 * include/std/std_complex.h: Partially revert last
3217 changes: cmath functions must not be qualified.
3218
313dd504
PE
32192003-07-06 Phil Edwards <pme@gcc.gnu.org>
3220
3221 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
3222 2.11 with globbing backport fix.
3223 * aclocal.m4, configure: Regenerated.
3224
6623b2f2
PC
32252003-07-06 Paolo Carlini <pcarlini@unitus.it>
3226
3227 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
3228 if output is at all possible (!_M_reading), cannot be active.
3229
3230 * include/std/std_fstream.h: Tweak comments to doxygen style.
3231
391cfc46
PC
32322003-07-06 Paolo Carlini <pcarlini@unitus.it>
3233
3234 * include/bits/locale_classes.h: Fully qualify standard
3235 functions with std::, thus avoiding Koenig lookup.
3236 * include/bits/locale_facets.tcc: Likewise.
3237 * src/locale.cc: Likewise.
3238 * src/localename.cc: Likewise.
3239
48166869
PE
32402003-07-06 Phil Edwards <pme@gcc.gnu.org>
3241
3242 * include/bits/allocator_traits.h: Fix doxygen markup.
3243 * include/ext/mt_allocator.h: Likewise.
3244
aaa4a229
PE
32452003-07-06 Phil Edwards <pme@gcc.gnu.org>
3246
3247 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
3248
e6b7a69a
PE
32492003-07-05 Phil Edwards <pme@gcc.gnu.org>
3250
3251 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
3252 requirement. Add port_specific_symbol_file variable.
3253 * configure.host: Add docs for port_specific_symbol_file.
3254 Clean up try_cpu block for x86.
3255 * config/linker-map.gnu: No more "last symbol can't have a
3256 semicolon" kaka. Add hook for port-specific symbols.
3257 * src/Makefile.am: Remove trailing whitespace.
3258 (libstdc++-symbol.ver): Detect the presence of port-specific
3259 symbols, and add them accordingly.
3260
3261 * docs/html/17_intro/porting.texi: Bring up to date.
3262
3263 * src/Makefile.in, aclocal.m4, configure,
3264 docs/html/17_intro/porting.html: Regenerated.
3265
ac3d7b44
PE
32662003-07-05 Phil Edwards <pme@gcc.gnu.org>
3267
3268 * scripts/create_testsuite_files: New file.
3269 * testsuite/Makefile.am (all-local, check-performance): Use it.
3270 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
3271 * testsuite/Makefile.in: Regenerated.
3272
3273 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
3274 files at the end.
3275 * testsuite/performance/fstream_seek_write.cc: Likewise.
3276 * testsuite/performance/ofstream_insert_float.cc: Likewise.
3277 * testsuite/performance/ofstream_insert_int.cc: Likewise.
3278 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
3279
e3d51be2
GB
32802003-07-05 Gawain Bolton <gp.bolton@computer.org>
3281
3282 * include/bits/stl_list.h: Performance and memory usage
c094e9b9
BK
3283 improvements. In particular, the behaviour of the constructor and
3284 destructor as the list header node is no longer dynamically
3285 allocated/de-allocated.
e3d51be2
GB
3286 * include/bits/list.tcc: Likewise.
3287
eb9a4231
PC
32882003-07-05 Paolo Carlini <pcarlini@unitus.it>
3289
3290 * include/std/std_complex.h: Fully qualify standard
3291 functions with std::, thus avoiding Koenig lookup.
3292 * include/std/std_memory.h: Likewise.
3293 * include/std/std_valarray.h: Likewise.
3294
f92c5313
GB
32952003-07-05 Gawain Bolton <gp.bolton@computer.org>
3296
3297 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
7e2055ec 3298 variable for grandparent and use const
f92c5313 3299
8b87d3fa
DB
33002003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
3301
3302 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
3303 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
3304 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
3305 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
3306 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
3307 * testsuite/27_io/objects/char/7.cc: Ditto
3308 * testsuite/27_io/objects/char/9661-1.cc: Ditto
3309
a8cad3e1
PC
33102003-07-05 Paolo Carlini <pcarlini@unitus.it>
3311
3312 * include/std/std_bitset.h: Fully qualify standard
3313 functions with std::, thus avoiding Koenig lookup.
3314
3315 * include/std/std_fstream.h: Change comment to doxygen style.
3316
2778669a
PE
33172003-07-05 Phil Edwards <pme@gcc.gnu.org>
3318
3319 * include/std/std_limits.h: More CPP->CXX changes.
3320 * scripts/check_survey.in: Likewise.
3321
3d7c150e
BK
33222003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3323
3324 Move from CPP to CXX.
3325 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
3326 * testsuite/Makefile.am: Same.
3327 * testsuite/Makefile.in: Regenerate.
3328 * po/Makefile.am: Same.
7e2055ec 3329 * po/Makefile.in: Regenerate.
3d7c150e 3330 * libsupc++/Makefile.am: Same.
7e2055ec 3331 * libsupc++/Makefile.in: Regenerate.
3d7c150e 3332 * libmath/Makefile.am: Same.
7e2055ec 3333 * libmath/Makefile.in: Regenerate.
3d7c150e 3334 * include/Makefile.am: Same.
7e2055ec 3335 * include/Makefile.in: Regenerate.
3d7c150e 3336 * src/Makefile.am: Same.
7e2055ec 3337 * src/Makefile.in: Regenerate.
3d7c150e
BK
3338 * acconfig.h: Same.
3339 * configure.host: Same.
3340 * configure.in: Same.
3341 * configure: Regenerate.
3342 * acinclude.m4: Same.
3343 * aclocal.m4: Same.
3344 * src: Change all files in this directory.
3345 * testsuite: Same.
3346 * include: Same, standardize include guards.
3347 * config: Same.
3348 * libsupc++: Same.
7e2055ec 3349
e6cc3a24
ZW
33502003-07-04 Zack Weinberg <zack@codesourcery.com>
3351
3352 * testsuite/22_locale/collate/compare/wchar_t/2.cc
3353 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
3354 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
3355 * testsuite/22_locale/collate/hash/wchar_t/2.cc
3356 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
3357 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
3358 * testsuite/22_locale/collate/transform/wchar_t/2.cc
3359 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
3360 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3361 XFAIL on all targets.
3362
d542f114
BK
33632003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3364
3365 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
3366 * aclocal.m4: Regenerate.
3367 * configure: Regenerate.
e6cc3a24 3368
d542f114
BK
33692003-07-04 Jerry Quinn <jlquinn@optonline.net>
3370
3371 * include/bits/locale_facets.tcc (__int_to_char): Move common case
3372 to the top.
3373
69ef29fd 33742003-07-04 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24
ZW
3375 Petur Runolfsson <peturr02@ru.is>
3376
69ef29fd
BK
3377 * config/io/basic_file_stdio.cc: Revert.
3378
5b5bf717
PC
33792003-07-04 Paolo Carlini <pcarlini@unitus.it>
3380
3381 * include/bits/deque.tcc: Fully qualify standard
3382 functions with std::, thus avoiding Koenig lookup.
3383 * include/bits/gslice_array.h: Likewise.
3384 * include/bits/indirect_array.h: Likewise.
3385 * include/bits/list.tcc: Likewise.
3386 * include/bits/mask_array.h: Likewise.
3387 * include/bits/slice_array.h: Likewise.
3388
7f6dd1ca
GB
33892003-07-04 Gawain Bolton <gbolton@free.fr>
3390
3391 * include/bits/stl_tree.h: Performance and memory usage
3392 improvements.
3393
8c90b13a
L
33942003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3395
3396 * Makefile.am: Replace PWD with PWD_COMMAND.
3397 * Makefile.in: Regenerated.
3398 * docs/html/Makefile: Likewise.
3399
2f805868
PC
34002003-07-04 Paolo Carlini <pcarlini@unitus.it>
3401
3402 * include/bits/valarray_array.h: Fully qualify standard
3403 functions with std::, thus avoiding Koenig lookup.
3404 * include/bits/vector.tcc: Likewise.
3405
a30335e9
BK
34062003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3407
3408 * include/Makefile.am: Update target_ to host_.
3409 * include/Makefile.in: Regenerate.
3410 * src/Makefile.am: Same.
3411 * src/Makefile.in: Regenerate.
3412
3413 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
e6cc3a24 3414
d8d81f62
BK
34152003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3416
3417 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
3418 --enable-libstdcxx-debug-flags.
3419 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
3420 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
3421 * aclocal.m4: Regenerate.
3422 * configure: Same.
3423 * docs/html/configopts.html: Update.
e6cc3a24 3424
10ef4e2e
PC
34252003-07-04 Paolo Carlini <pcarlini@unitus.it>
3426
3427 Revert the fix for libstdc++/11378.
3428
ac2c48d7
PC
34292003-07-04 Paolo Carlini <pcarlini@unitus.it>
3430
3431 PR libstdc++/11378
3432 * include/std/std_fstream.h (xsputn): In the unbuffered case,
3433 provided always_noconv(), issue directly _M_file.xsputn.
3434 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
3435
9dd90ac6
PC
34362003-07-04 Paolo Carlini <pcarlini@unitus.it>
3437
3438 * include/bits/stl_list.h: Fully qualify standard
3439 functions with std::, thus avoiding Koenig lookup.
3440 * include/bits/stl_queue.h: Likewise.
3441 * include/bits/stl_raw_storage_iter.h: Likewise.
3442 * include/bits/stl_tempbuf.h: Likewise.
3443 * include/bits/stl_tree.h: Likewise.
3444 * include/bits/stl_uninitialized.h: Likewise.
3445 * include/bits/stl_vector.h: Likewise.
e6cc3a24 3446 * include/ext/rope: Change includes order.
9dd90ac6 3447
1b33b6b2
BK
34482003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3449
3450 * configure.host (fpos_include_dir): Fix.
3451
369b78b0
PC
34522003-07-04 Paolo Carlini <pcarlini@unitus.it>
3453
3454 * include/bits/stl_heap.h: Fully qualify standard
3455 functions with std::, thus avoiding Koenig lookup.
3456 * include/bits/stl_iterator_base_funcs.h: Likewise.
3457
3458 * include/bits/stl_algo.h: Qualify __iterator_category too.
3459 * include/bits/stl_algobase.h: Likewise.
3460 * include/bits/stl_bvector.h: Likewise.
3461
3462 * include/bits/stl_algo.h: Don't qualify the pair type.
3463
cc5112c9
BK
34642003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3465
3466 * include/Makefile.am (target_headers): Add fpos.h
3467 (bits_headers): Remove.
3468 * include/Makefile.in: Regenerate.
3469 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3470 * configure: Regenerate.
3471 * configure.host: Add fpos_include_dir.
3472 * config/os/gnu-linux/fpos.h: New.
e6cc3a24
ZW
3473 * config/os/generic/fpos.h: Add.
3474 * include/bits/fpos.h: Remove.
cc5112c9
BK
3475
3476 * config/io/c_io_stdio.h: Remove fpos_t typedef.
3477
3478 * include/bits/fstream.tcc: Tweaks.
3479 * include/std/std_fstream.h: Same.
e6cc3a24 3480
cc5112c9
BK
3481 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3482 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3483 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3484 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3485 * testsuite/27_io/fpos/1.cc: New.
e6cc3a24 3486
cc5112c9
BK
34872003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3488 Petur Runolfsson <peturr02@ru.is>
e6cc3a24 3489
cc5112c9
BK
3490 * include/std/std_streambuf.h: Remove _M_pos.
3491 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3492 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3493 use fread/fwrite instead of read/write.
3494 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3495 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3496 before reading again.
3497 * testsuite/27_io/objects/char/6.cc: Tweak.
e6cc3a24 3498
304d79dc
DE
34992003-07-03 David Edelsohn <edelsohn@gnu.org>
3500
3501 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3502 _GLIBCPP_USE_WCHAR_T.
3503
41ba4c46
PC
35042003-07-02 Paolo Carlini <pcarlini@unitus.it>
3505
3506 * include/bits/basic_string.tcc (_M_replace_aux): Constify
3507 __n1 and __off1.
3508
da73f9de
PC
35092003-07-02 Paolo Carlini <pcarlini@unitus.it>
3510
3511 * include/bits/stl_bvector.h: Fully qualify standard
3512 functions with std::, thus avoiding Koenig lookup.
3513 * include/bits/stl_construct.h: Likewise.
3514 * include/bits/stl_deque.h: Likewise.
3515
1c380095
PC
35162003-07-02 Paolo Carlini <pcarlini@unitus.it>
3517
3518 * testsuite/22_locale/num_put/put/char/7.cc: Include
3519 <testsuite_hooks.h>, tweak.
3520 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3521
f9f4d1e1
PE
35222003-07-01 Phil Edwards <pme@gcc.gnu.org>
3523
3524 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
3525 check* targets, but not libs/programs).
3526 * testsuite/Makefile.in: Regenerate.
3527
b7693a46
RS
35282003-07-01 Roger Sayle <roger@eyesopen.com>
3529
3530 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3531 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3532 * aclocal.m4: Regenerate.
3533 * configure: Regenerate.
3534
a5b1b26c
BK
35352003-07-01 Benjamin Kosnik <bkoz@redhat.com>
3536
3537 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3538 * aclocal.m4: Regenerated.
3539 * configure: Regenerated.
e6cc3a24 3540
f64f3e74
PC
35412003-07-01 Paolo Carlini <pcarlini@unitus.it>
3542
3543 PR libstdc++/11389
3544 * include/bits/fstream.tcc (underflow): For encoding() == 0
3545 don't read more than __buflen chars.
3546 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3547 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3548 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3549 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3550
5ee78c21
JQ
35512003-07-01 Jerry Quinn <jlquinn@optonline.net>
3552
3553 * 22_locale/num_put/put/char/7.cc: New.
3554 * 22_locale/num_put/put/wchar_t/7.cc: New.
3555
e97ee22e
JQ
35562003-06-30 Jerry Quinn <jlquinn@optonline.net>
3557
3558 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3559 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3560
7d6a0993
BK
35612003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3562
3563 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3564 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3565 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3566 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3567 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3568 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3569 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3570 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3571 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3572 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3573 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3574 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3575 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3576 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3577 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3578 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3579 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3580 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3581 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3582 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3583 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3584 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3585 * data/seekoff-1.tst: Remove.
3586 * data/seekoff-1io.tst: New.
3587 * data/seekoff-1out.tst: New.
3588 * data/seekoff-2.tst: Remove.
3589 * data/seekoff-2io.tst: New.
3590 * data/seekoff-2out.tst: New.
3591 * data/seekoff.txt
3592 * data/seekpos-1.tst: Remove.
3593 * data/seekpos-1io.tst: New.
3594 * data/seekpos-1out.tst: New.
3595 * data/seekpos-2.tst: Remove.
3596 * data/seekpos-2io.tst: New.
3597 * data/seekpos-2out.tst: New.
3598 * data/seekpos.txt: New.
3599
a5b1b26c 36002003-06-30 Jerry Quinn <jlquinn@optonline.net>
cf0cad09
JQ
3601
3602 * src/locale.cc (__use_cache<numpunct>): Move from here ...
3603 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3604 here.
3605
884a757a
PC
36062003-06-30 Paolo Carlini <pcarlini@unitus.it>
3607
3608 * include/bits/stl_algobase.h: Fully qualify standard
3609 functions with std::, thus avoiding Koenig lookup.
3610
5892c641 36112003-06-30 Doug Gregor <dgregor@apple.com>
e6cc3a24 3612
5892c641 3613 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
e6cc3a24 3614 subscripting empty string.
5892c641 3615
7685a26d
PE
36162003-06-30 Phil Edwards <pme@gcc.gnu.org>
3617
3618 * testsuite/Makefile.am (check-am): Do not override.
3619 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
3620 * testsuite/Makefile.in: Regenerate.
3621
e6cc3a24
ZW
36222003-06-30 Doug Gregor <dgregor@apple.com>
3623
d147b75b
DG
3624 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3625 Don't initialize an insert_iterator with a singular iterator.
3626
44f0760e 36272003-06-30 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 3628
44f0760e
BK
3629 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3630 * aclocal.m4: Regenerate.
3631 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3632 GLIBCPP_ENABLE_PCH, default to yes.
3633 * configure: Regenerate.
3634 * docs/html/configopts.html: Add --enable-pch.
e6cc3a24 3635
e37f7da7
PE
36362003-06-30 Phil Edwards <pme@gcc.gnu.org>
3637
3638 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
3639 (libstdc++-v3-init): Also set LD_RUN_PATH.
3640
cd16e04b
PC
36412003-06-30 Paolo Carlini <pcarlini@unitus.it>
3642
fbfcbadc
PC
3643 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3644 from here to filebuf and stringbuf.
cd16e04b
PC
3645 (~basic_streambuf()): Don't set _M_mode.
3646 (basic_streambuf()): Don't set _M_mode.
3647 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3648 (~basic_filebuf()): Clean up.
3649 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3650 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3651 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3652 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3653 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3654 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3655 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3656
36572003-06-30 Paolo Carlini <pcarlini@unitus.it>
3658
3659 * include/std/std_fstream.h (_M_underflow): Remove.
3660 (uflow): Remove, inherited from streambuf.
3661 (underflow): Only declare.
e6cc3a24 3662 * include/bits/fstream.tcc (_M_underflow): Rename to
cd16e04b
PC
3663 underflow, to which is equivalent for __bump == false,
3664 simplify.
3665 * include/std/std_sstream.h (_M_underflow): Remove.
3666 (uflow): Remove, inherited from streambuf.
3667 (underflow): Only declare.
e6cc3a24 3668 * include/bits/sstream.tcc (_M_underflow): Rename to
cd16e04b
PC
3669 underflow, to which is equivalent for __bump == false,
3670 simplify.
3671
c868f37e
PC
36722003-06-29 Paolo Carlini <pcarlini@unitus.it>
3673
fbfcbadc
PC
3674 * include/bits/stl_algo.h: Fully qualify standard functions
3675 with std::, thus avoiding Koenig lookup.
c868f37e 3676
165f54e0
PC
36772003-06-29 Paolo Carlini <pcarlini@unitus.it>
3678
3679 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3680 Improve type correctness-wise.
3681 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3682 Likewise.
3683 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3684 Likewise.
3685 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3686 Likewise.
3687
90319d16
PC
36882003-06-29 Paolo Carlini <pcarlini@unitus.it>
3689
3690 * include/std/std_streambuf.h (uflow): According to
3691 27.5.2.4.3,p16, don't check gptr() < egptr().
3692
b417ae14
PC
36932003-06-28 Paolo Carlini <pcarlini@unitus.it>
3694
3695 PR libstdc++/9875
3696 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3697 (seekpos): Likewise.
3698 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3699 New test.
3700 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3701 New test.
3702
f1a22109
BK
37032003-06-27 Benjamin Kosnik <bkoz@redhat.com>
3704
3705 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3706 output name to libstdc++-v3-performance.sum.
3707 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3708 * testsuite/Makefile.in: Regenerate.
e6cc3a24 3709
f1a22109
BK
37102003-06-27 Matthias Klose <doko@debian.org>
3711
3712 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3713 output of abi-check in libstdc++-v3-abi.sum.
3714 * testsuite/Makefile.in: Regenerate.
3715
2e8a523f
KW
37162003-06-27 Krister Walfridsson <cato@df.lth.se>
3717
3718 * config/os/bsd/netbsd/ctype_noninline.h
3719 (_C_ctype_): Declare.
3720 (ctype<char>::classic_table): Return _C_ctype_ + 1.
3721 (ctype<char>::ctype): Use classic_table.
3722
3461133d
PC
37232003-06-27 Paolo Carlini <pcarlini@unitus.it>
3724 Nathan C. Myers <ncm-nospam@cantrip.org>
3725
3726 PR libstdc++/9178
3727 * include/bits/fstream.tcc (_M_underflow): Properly estimate
3728 the worst-case number of external bytes for a given get area.
3729 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3730
37312003-06-27 Paolo Carlini <pcarlini@unitus.it>
3732 Petur Runolfsson <peturr02@ru.is>
3733
3734 PR libstdc++/11305
3735 * include/bits/fstream.tcc (overflow): Properly estimate the
3736 worst-case number of external bytes for a given put area
3737 (by using codecvt::max_length()).
3738 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3739 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3740 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3741 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3742
5648db54
NS
37432003-06-27 Nathan Sidwell <nathan@codesourcery.com>
3744
3745 * config/linker-map.gnu: Remove ; after __numpunct_cache.
3746
215f9e28
BK
37472003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3748
3749 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
3750 to the imbued locale.
3751 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
3752 _M_getloc.
3753 (num_put::_M_convert_float): Use.
3754
37552003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3756 Jerry Quinn <jlquinn@optonline.net>
3757
3758 * config/linker-map.gnu: Add __numpunct_cache.
3759 * config/locale/gnu/numeric_members.cc
3760 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
3761 all elements for "C" locale.
3762 (numpunct::~numpunct): Delete _M_data.
e6cc3a24 3763 * config/locale/generic/numeric_members.cc: Same.
215f9e28
BK
3764 * include/bits/basic_ios.tcc
3765 (basic_ios::init): Remove __locale_cache bits.
3766 (basic_ios::_M_cache_locale): Same.
e6cc3a24 3767 * include/bits/ios_base.h: Same. Tweaks.
215f9e28
BK
3768 * include/bits/locale_classes.h: Tweaks. Reorder classes.
3769 (__use_cache): Make friends with _Impl, locale.
3770 (_Impl::_M_caches): Add.
3771 (_Impl::_M_install_cache): Add.
3772 * include/bits/locale_facets.h (__numpunct_cache): New.
3773 (numpunct): Encapsulate data members in __numpunct_cache member,
3774 _M_data. Adjust virtuals.
e6cc3a24 3775 (numpunct::numpunct): New ctor for the same.
215f9e28 3776 (__locale_cache_base): Remove.
e6cc3a24 3777 (__locale_cache): Remove.
215f9e28
BK
3778 * include/bits/locale_facets.tcc (__use_cache): New function,
3779 specializations.
3780 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
3781 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
3782 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
3783 * src/locale-inst.cc: Same. Add __numpunct_cache.
3784 * src/locale.cc: Tweak inlines.
3785 (__use_cache): Define specializations.
3786 * src/localename.cc: Use global bits.
3787 (_Impl::~Impl): Deal with __numpunct_cache destruction.
3788 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
3789 (_Impl::_M_init_facet): Take into account __numpunct_cache.
3790 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
3791 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3792
8370378a 37932003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 3794 Paolo Carlini <pcarlini@unitus.it>
8370378a
NM
3795
3796 * testsuite/performance/filebuf_copy.cc: New, testing char
3797 by char file copy.
3798
2cfe4e68 37992003-06-26 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 3800 Nathan C. Myers <ncm-nospam@cantrip.org>
2cfe4e68
PC
3801
3802 * include/bits/fstream.tcc (_M_underflow): When the actual
3803 end of file is reached, set 'uncommitted' mode to allow a
3804 next write without an intervening seek (see C++98 27.8.1.1,2
3805 and C89 7.9.5.3).
3806 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
3807
29d9ed97
NM
38082003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
3809
3810 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3811 sputc): Move inline, from here...
3812 * include/std/std_streambuf.h: ... to here.
3813
3814 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
3815 sputbackc, sungetc, sputc): Use __builtin_expect.
3816
c1a62440
PE
38172003-06-24 Phil Edwards <pme@gcc.gnu.org>
3818
3819 * docs/doxygen/mainpage.html: Use a useful title.
3820
cdc1242a
BK
38212003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3822
3823 * docs/html/documentation.html: Remove assignment info.
3824 * docs/html/17_intro/contribute.html: Edits.
3825 * docs/html/17_intro/libstdc++-assign.tx: Remove.
3826
3827 * docs/html/test.html: Update.
3828
3829 * README: Update.
e6cc3a24 3830
1b6f0a56 38312003-06-24 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 3832 Ulrich Drepper <drepper@redhat.com>
1b6f0a56
BK
3833
3834 * testsuite/testsuite_performance.h: Tweak mallinfo.
3835
71b46021 38362003-06-24 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 3837 Nathan C. Myers <ncm-nospam@cantrip.org>
71b46021
PC
3838
3839 * include/std/std_fstream.h (_M_filepos): Remove.
3840 (_M_reading, _M_writing): New, encode the various I/O modes:
3841 'read', 'write' and 'uncommitted'.
3842 (sync): If there is something to flush, do it, then go to
3843 'uncommitted' mode.
3844 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3845 with three different cases: __off > 0 (upon underflow),
3846 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3847 seekoff/pos).
3848 (_M_underflow): Don't call overflow, set _M_reading to true
3849 on success, tweak.
3850 (pbackfail): Set _M_reading to true on pback creation, tweak.
3851 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3852 set _M_writing to true on success, tweak.
3853 (seekoff): Simplify, set _M_reading, _M_writing to false, call
3854 _M_set_buffer(-1) ('uncommitted').
3855 (open, close, setbuf): Set _M_reading, _M_writing to false and
3856 call _M_set_buffer(-1), tweak.
3857 (basic_filebuf): Don't set _M_buf_unified.
3858 (_M_destroy_internal_buffer): Don't call setg and setp.
3859 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3860 _M_writing and _M_set_buffer(-1).
3861 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3862 _M_out_lim, _M_buf_unified): Remove.
3863 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
e6cc3a24 3864 (setp): Don't set _M_out_lim.
71b46021
PC
3865 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3866 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3867 upon open the mode is 'uncommitted' and therefore the put area
3868 pointers are null.
3869 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3870 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3871 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3872 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3873 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3874 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3875 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3876 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3877 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3878 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3879 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3880 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3881 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3882 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3883 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3884 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3885 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3886 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3887 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3888 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3889
3890 * include/bits/fstream.tcc (showmanyc): Use only the
3891 documented derivation interface to basic_streambuf (gptr(),
3892 setg(), etc.) to work right with user specializations.
3893 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3894 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3895 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3896 Likewise.
3897 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3898 xsgetn): Likewise.
3899
9eb6e1d3
LR
39002003-06-23 Loren J. Rittle <ljrittle@acm.org>
3901
3902 * configure.host (freebsd*): Set abi_baseline_pair.
3903 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3904 (at or near first release) to 3.3.
3905 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3906 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3907 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3908
3d57d7ba 3909 * include/ext/mt_allocator.h: Portability.
d1a2c4d6 3910 * testsuite/testsuite_performance.h: Likewise.
3d57d7ba 3911
c89c30dd
BK
39122003-06-23 Benjamin Kosnik <bkoz@redhat.com>
3913
3914 * docs/html/17_intro/libstdc++-assign.txt: Update address.
3915
3916 * testsuite/performance/ifstream_getline.cc: Fix.
e6cc3a24 3917
c89c30dd 39182003-06-23 Doug Gregor <dgregor@apple.com>
2b491e3a 3919
e6cc3a24
ZW
3920 * include/bits/boost_concept_check.h: Don't use _D or _R for type
3921 names.
2b491e3a 3922
1b170b55
PC
39232003-06-22 Paolo Carlini <pcarlini@unitus.it>
3924 Nathan C. Myers <ncm-nospam@cantrip.org>
3925
3926 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3927 is now used only for filebuf, when _M_buf_unified is true.
3928 epgtr() plays the role of _M_out_lim but it's only updated
3929 upon overflow, underflow, uflow, seekoff/pos.
3930 * include/bits/sstream.tcc (_M_underflow): New, implements
3931 stringbuf::underflow and uflow.
3932 (seekoff, seekpos): Tweak, use _M_update_egptr.
3933 * include/std/std_sstream.h (str): Rewrote, deal correctly
3934 with the new logic, in particular, when pptr() > egptr().
3935 (_M_sync): When __testout && !__testin set all the get area
3936 pointers to the current string end.
3937 (_M_update_egptr): New, internal function updating egptr()
3938 to the actual string end.
3939 (_M_underflow): New, declare.
3940 (underflow): Dispatch to _M_underflow(false).
3941 (uflow): Dispatch to _M_underflow(true).
3942
3943 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3944 seekpos): Use only the documented derivation interface to
3945 basic_streambuf (gptr(), setg(), etc.) to work right with
3946 user specializations.
3947 * include/std/std_sstream.h (str, _M_sync): Likewise.
3948
8dbe14be
DG
39492003-06-20 Doug Gregor <dgregor@apple.com>
3950
1b170b55
PC
3951 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3952 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3953 dereference end iterator.
3954 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3955 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3956 index equal to the length of a string.
3957 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3958 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3959 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3960 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3961 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3962 * testsuite/23_containers/list_modifiers.cc: Don't dereference
3963 singular reverse iterator.
3964 * testsuite/23_containers/vector_bool.cc: Don't increment singular
3965 iterator.
3966 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
8dbe14be 3967
bdb0f0f5
DG
39682003-06-20 Doug Gregor <dgregor@apple.com>
3969
e6cc3a24 3970 * include/bits/basic_string.h (basic_string::replace): Dispatch
bdb0f0f5
DG
3971 _InputIterator version based on _Is_integer.
3972 * include/bits/basic_string.tcc (basic_string::replace):
3973 Renamed replace(iterator, iterator, size_type, _CharT) to
3974 _M_replace_aux.
3975 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3976 Test basic_string::assign(_InputIterator, _InputIterator),
3977 which calls basic_string::replace(iterator, iterator,
3978 _Input_iterator, _InputIterator).
3979
f5a6463e
BK
39802003-06-20 Benjamin Kosnik <bkoz@redhat.com>
3981
3982 * testsuite/testsuite_performance.h (resource_counter): Don't use
3983 mallinfo at the moment.
3984
bbdfb3e8
MK
39852003-06-20 Matthias Klose <doko@debian.org>
3986
3987 * configure.host: Set try_cpu to target_cpu for existing
3988 baseline files.
3989
97460e9a
AJ
39902003-06-19 Andreas Jaeger <aj@suse.de>
3991
3992 * testsuite/Makefile.am (extract_symvers): Revert accidental
3993 change.
3994 * testsuite/Makefile.in: Regenerate.
3995
3996 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3997 * configure: Regenerated.
3998
50af15ec
PC
39992003-06-19 Paolo Carlini <pcarlini@unitus.it>
4000
4001 * include/std/std_sstream.h (_M_sync): Make non virtual.
4002
ce4f8c6b
BK
40032003-06-18 Benjamin Kosnik <bkoz@redhat.com>
4004
4005 * testsuite/testsuite_performance.h (time_counter): New.
4006 (resource_counter): New.
4007 (report_performance): New.
4008 (start_counters): New.
4009 (stop_counters): New.
97460e9a 4010 (clear_counters): New.
ce4f8c6b
BK
4011 * testsuite/performance/allocator.cc: Instrument.
4012 * testsuite/performance/cout_insert_int.cc: Same.
4013 * testsuite/performance/complex_norm.cc: Same.
4014 * testsuite/performance/filebuf_sputc.cc: New.
4015 * testsuite/performance/fstream_seek_write.cc: Same.
4016 * testsuite/performance/ifstream_getline.cc: Same.
4017 * testsuite/performance/map_create_fill.cc: Same.
4018 * testsuite/performance/ofstream_insert_float.cc: Same.
4019 * testsuite/performance/ofstream_insert_int.cc: Same.
97460e9a 4020 * testsuite/performance/string_append.cc: Convert.
ce4f8c6b
BK
4021 * scripts/check_performance: New.
4022 * testsuite/Makefile.am (check-performance): New.
4023 (CLEANFILES): Add.
97460e9a 4024
b82a33d2 40252003-06-18 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 4026 Benjamin Kosnik <bkoz@redhat.com>
b82a33d2
PC
4027
4028 * include/std/std_sstream.h (setbuf): Check __n >= 0.
4029 * include/bits/fstream.tcc (setbuf): Tweak.
4030
4c526d09
PC
40312003-06-18 Paolo Carlini <pcarlini@unitus.it>
4032
4033 * include/bits/sstream.tcc (seekoff): We can't seek beyond
4034 _M_out_lim, therefore _M_move_out_cur boils down to simply
4035 updating _M_out_cur.
4036 (seekpos): Likewise, clean up.
4037
c1b74c21 40382003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 4039 Paolo Carlini <pcarlini@unitus.it>
c1b74c21
NM
4040
4041 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
4042 simply equivalent to the unbuffered case (0, 0) as far as
4043 _M_buf_size is concerned.
4044
a1af4623
AJ
40452003-06-18 Andreas Jaeger <aj@suse.de>
4046
4047 * testsuite/Makefile.am (new-abi-baseline): Create baseline
4048 directory.
4049 (baseline_file): Use baseline_dir.
4050 (baseline_dir): New.
4051 (mkinstalldirs): New.
4052
4053 * acinclude.m4: Rename baseline_file to baseline_dir, strip
4054 filename from baseline_dir.
4055
4056 * testsuite/Makefile.in: Regenerated.
4057 * Makefile.in: Regenerated.
4058 * aclocal.m4: Regenerated.
4059 * configure: Regenerated.
4060
2f934953
BK
40612003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4062
4063 * configure.in: Missed check_survey bit.
4064 * configure: Regenerated.
4065
0676e930
BK
40662003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4067
4068 * scripts: New.
4069 * config/abi/extract_symvers: Move to...
4070 * scripts/extract_symvers: ...here.
4071 * mkcheck.in: Move to..
4072 * scripts/check_survey.in: ...here.
4073 * testsuite_flags.in: Move to..
4074 * scripts/testsuite_flags.in: ...here.
4075 * configure.in: Change check and testsuite_flags locations.
4076 * configure: Regenerate.
4077 * testsuite/Makefile.am (current_symbols.txt): Change location.
4078 * testsuite/Makefile.in: Regenerate.
4079 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4080 location of testsuite_flags.
4081 * Makefile.am (check-script): Move..
4082 (check-script-install): Move...
a1af4623 4083 * testsuite/Makefile.am: ... here.
0676e930 4084 * testsuite/Makefile.in: Regenerate.
a1af4623
AJ
4085 * Makefile.in: Regenerate.
4086
82620aaf
BK
40872003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4088
4089 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
4090
c4c064e7
BK
40912003-06-16 Benjamin Kosnik <bkoz@redhat.com>
4092
4093 * Makefile.am (check-abi): Move...
4094 (new-abi-baseline): Move...
4095 * testsuite/Makefile.am: ...here.
4096 (new-abi-baseline): Conditionalize.
4097 (check-abi): Conditionalize.
4098 (check-abi-verbose): New.
4099 * Makefile.in: Regenerate.
a1af4623 4100 * testsuite/Makefile.in: Regenerate.
c4c064e7
BK
4101 * configure.in: Consolidate testsuite configure bits.
4102 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
4103 * configure: Regenerate.
a1af4623 4104 * aclocal.m4: Regenerate.
c4c064e7
BK
4105 * testsuite/abi_check.cc: Add --check-verbose.
4106 Only output detailed information if --check-verbose.
4107
e7bb3511 41082003-06-16 Andreas Jaeger <aj@suse.de>
a1af4623 4109
e6cc3a24 4110 * testsuite/abi_check.cc: Create summary report.
a1af4623 4111
8363b773
PC
41122003-06-16 Paolo Carlini <pcarlini@unitus.it>
4113
4114 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
4115 for systems with BUFSIZ != 8192.
4116 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4117 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
4118 Minor tweaks.
4119
5ab481e0
BK
41202003-06-16 Andreas Jaeger <aj@suse.de>
4121
4122 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
4123 check-abi multilib aware.
4124 * aclocal.m4: Regenerate.
4125 * configure: Regenerate.
a1af4623 4126
5ab481e0 41272003-06-16 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 4128 Andreas Jaeger <aj@suse.de>
5ab481e0
BK
4129
4130 * configure.host: Set x86_64 abi_baseline pair correctly.
4131
0bad3b7c
PC
41322003-06-16 Paolo Carlini <pcarlini@unitus.it>
4133
4134 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
e6cc3a24 4135 fix for missing seeks between gets and puts into...
0bad3b7c
PC
4136 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
4137 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
4138 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
4139 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
4140 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
4141 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
a1af4623 4142
dc4add82
RH
41432003-06-15 Richard Henderson <rth@redhat.com>
4144
4145 * config/linker-map.gnu: Export virtual function thunks for
4146 64-bit systems too.
4147
ef16a298
BK
41482003-06-13 Benjamin Kosnik <bkoz@redhat.com>
4149
4150 * config/abi/i686-pc-linux-gnu: To..
4151 * config/abi/i486-linux-gnu: ...this.
4152 * config/abi/alphaev67-unknown-linux-gnu: To..
4153 * config/abi/alpha-linux-gnu: ...this.
4154 * config/abi/ia64-unknown-linux-gnu: To...
4155 * config/abi/ia64-linux-gnu: ...this.
4156 * config/abi/x86_64-unknown-linux-gnu: To...
4157 * config/abi/x86_64-linux-gnu: ...this.
4158 * config/abi/i386-unknown-freebsd4: To...
4159 * config/abi/i386-freebsd4: ...this.
5ab481e0
BK
4160 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
4161 CXXABI.
ef16a298
BK
4162 * configure.host: abi_baseline_triplet to abi_baseline_pair.
4163 Simplify cpu bits so that abi_baseline_pair can use the same
4164 cpu configuration.
4165 * acinclude.m4: Same.
4166 * aclocal.m4: Regenerate.
4167 * configure.in: Can't get enable_abi_check to yes unless native.
4168 * configure: Regenerate.
4169
ed242935
PC
41702003-06-13 Paolo Carlini <pcarlini@unitus.it>
4171
4172 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
4173 fix for missing seeks between gets and puts into...
4174 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
4175 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
4176 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
4177 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
4178 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
4179 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
4180 for missing seeks between gets and puts.
4181 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
4182 * testsuite/data/seekoff-1.tst: New.
4183 * testsuite/data/seekoff-2.tst: New.
4184 * testsuite/data/seekpos-1.tst: New.
4185 * testsuite/data/seekpos-2.tst: New.
4186
ca566e4c
NM
41872003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
4188
4189 Avoid multi-processor bus contention on increment/decrement-and-
a1af4623 4190 test of the reference count in the empty-string object, by comparing
e6cc3a24
ZW
4191 addresses first, and never touching the reference count of the empty-
4192 string object.
ca566e4c
NM
4193 * include/bits/basic_string.h:
4194 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
4195 members.
a1af4623 4196 (_Rep::_S_empty_rep()): New accessor.
ca566e4c
NM
4197 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
4198 a base class _Rep_base.
4199 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
4200 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
4201 since no longer must increment its refcount.
4202 * include/bits/basic_string.tcc:
a1af4623 4203 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
e6cc3a24
ZW
4204 return immediately. The former might be unnecessary. The latter
4205 prevents begin() and end() from cloning it unnecessarily.
ca566e4c
NM
4206 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4207 input_iterator_tag), _S_construct(_InIterator, _InIterator,
4208 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
4209 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
4210 (_M_mutate): Check for the empty string and treat it as shared.
e6cc3a24
ZW
4211 This is necessary here because _M_mutate is sometimes called with
4212 all-zero arguments; in all other uses of _M_is_shared, the test comes
4213 out right anyhow.
a1af4623 4214
c37514ff
BK
42152003-06-12 Benjamin Kosnik <bkoz@redhat.com>
4216
4217 * src/allocator-inst.cc: Explicitly instantiate.
4218 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
4219 Tweaks.
4220 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
a1af4623 4221
58ac1d7f
BK
42222003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4223
4224 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
4225 * aclocal.m4: Regenerate.
4226 * Makefile.am (SUBDIRS): Remove libio.
4227 * Makefile.in: Regenerate.
4228 * configure.in: Same.
4229 * configure: Regenerate.
4230 * config/io/basic_file_libio.cc: Remove.
a1af4623 4231 * config/io/basic_file_libio.h: Remove.
58ac1d7f 4232 * config/io/c_io_libio_codecvt.c: Remove.
a1af4623 4233 * config/io/c_io_libio.h: Remove.
58ac1d7f
BK
4234 * libio/*: Remove.
4235 * src/Makefile.am: Same.
4236 * src/Makefile.in: Regenerate.
a1af4623 4237 * docs/html/configopts.html: Edits.
58ac1d7f 4238 * docs/html/explanations.html: Edits.
a1af4623 4239
1ff9402d
BK
42402003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4241
4242 * include/bits/stl_alloc.h (__debug_alloc): Move out.
4243 (__malloc_alloc): Same.
4244 (__pool_alloc): Same.
4245 (__new_alloc): Same.
4246 Rename to..
4247 * include/bits/allocator.h: ...this.
4248 * include/bits/stl_deque.h: Modify comment.
4249 * include/bits/stl_tree.h: Modify include.
4250 * include/std/std_memory.h: Same.
4251 * include/ext/rope: Same.
a1af4623 4252 * include/ext/slist: Same.
1ff9402d
BK
4253 * include/std/std_vector.h: Same.
4254 * include/std/std_stack.h: Same.
4255 * include/std/std_queue.h: Same.
4256 * include/std/std_list.h: Same.
4257 * include/std/std_deque.h: Same.
4258 * include/backward/alloc.h: Same.
4259 * include/ext/debug_allocator.h: New.
a1af4623
AJ
4260 * include/ext/malloc_allocator.h: New.
4261 * include/ext/pool_allocator.h: New.
1ff9402d
BK
4262 * include/ext/new_allocator.h: New.
4263 * include/bits/pthread_allocimpl.h: Remove.
a1af4623 4264 * include/bits/stl_pthread_alloc.h: Remove.
1ff9402d
BK
4265 * include/Makefile.am (ext_headers): Add.
4266 * include/Makefile.in: Regenerate.
4267 * src/stl-inst.cc: Use __gnu_cxx namespace.
4268 * src/stl-inst.cc: Move to...
4269 * src/allocator-inst.cc: Here.
4270 * src/Makefile.am (sources): Update.
4271 * src/Makefile.in: Regenerate.
4272 * config/linker-map.gnu: Remove __pool_alloc bits.
4273 * testsuite/ext/headers.cc: Add.
4274 * testsuite/ext/allocators.cc: Fixup.
a1af4623 4275
1ff9402d 42762003-06-11 Stefan Olsson <stefan@snon.net>
e6cc3a24 4277