1 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3 * include/std/std_streambuf.h (_M_mode): Move from here to
5 (~basic_streambuf()): Don't set _M_mode.
6 (basic_streambuf()): Don't set _M_mode.
7 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
8 (~basic_filebuf()): Clean up.
9 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
10 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
11 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
12 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
13 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
14 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
15 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
17 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
19 * include/std/std_fstream.h (_M_underflow): Remove.
20 (uflow): Remove, inherited from streambuf.
21 (underflow): Only declare.
22 * include/bits/fstream.tcc (_M_underflow): Rename to
23 underflow, to which is equivalent for __bump == false,
25 * include/std/std_sstream.h (_M_underflow): Remove.
26 (uflow): Remove, inherited from streambuf.
27 (underflow): Only declare.
28 * include/bits/sstream.tcc (_M_underflow): Rename to
29 underflow, to which is equivalent for __bump == false,
32 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
34 * include/bits/stl_algo.h (LOTS): Fully qualify standard
35 functions with std::, thus avoiding Koenig lookup.
37 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
39 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
40 Improve type correctness-wise.
41 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
43 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
45 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
48 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
50 * include/std/std_streambuf.h (uflow): According to
51 27.5.2.4.3,p16, don't check gptr() < egptr().
53 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
56 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
58 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
60 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
63 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
65 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
66 output name to libstdc++-v3-performance.sum.
67 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
68 * testsuite/Makefile.in: Regenerate.
70 2003-06-27 Matthias Klose <doko@debian.org>
72 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
73 output of abi-check in libstdc++-v3-abi.sum.
74 * testsuite/Makefile.in: Regenerate.
76 2003-06-27 Krister Walfridsson <cato@df.lth.se>
78 * config/os/bsd/netbsd/ctype_noninline.h
80 (ctype<char>::classic_table): Return _C_ctype_ + 1.
81 (ctype<char>::ctype): Use classic_table.
83 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
84 Nathan C. Myers <ncm-nospam@cantrip.org>
87 * include/bits/fstream.tcc (_M_underflow): Properly estimate
88 the worst-case number of external bytes for a given get area.
89 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
91 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
92 Petur Runolfsson <peturr02@ru.is>
95 * include/bits/fstream.tcc (overflow): Properly estimate the
96 worst-case number of external bytes for a given put area
97 (by using codecvt::max_length()).
98 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
99 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
100 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
101 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
103 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
105 * config/linker-map.gnu: Remove ; after __numpunct_cache.
107 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
109 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
110 to the imbued locale.
111 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
113 (num_put::_M_convert_float): Use.
115 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
116 Jerry Quinn <jlquinn@optonline.net>
118 * config/linker-map.gnu: Add __numpunct_cache.
119 * config/locale/gnu/numeric_members.cc
120 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
121 all elements for "C" locale.
122 (numpunct::~numpunct): Delete _M_data.
123 * config/locale/generic/numeric_members.cc: Same.
124 * include/bits/basic_ios.tcc
125 (basic_ios::init): Remove __locale_cache bits.
126 (basic_ios::_M_cache_locale): Same.
127 * include/bits/ios_base.h: Same. Tweaks.
128 * include/bits/locale_classes.h: Tweaks. Reorder classes.
129 (__use_cache): Make friends with _Impl, locale.
130 (_Impl::_M_caches): Add.
131 (_Impl::_M_install_cache): Add.
132 * include/bits/locale_facets.h (__numpunct_cache): New.
133 (numpunct): Encapsulate data members in __numpunct_cache member,
134 _M_data. Adjust virtuals.
135 (numpunct::numpunct): New ctor for the same.
136 (__locale_cache_base): Remove.
137 (__locale_cache): Remove.
138 * include/bits/locale_facets.tcc (__use_cache): New function,
140 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
141 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
142 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
143 * src/locale-inst.cc: Same. Add __numpunct_cache.
144 * src/locale.cc: Tweak inlines.
145 (__use_cache): Define specializations.
146 * src/localename.cc: Use global bits.
147 (_Impl::~Impl): Deal with __numpunct_cache destruction.
148 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
149 (_Impl::_M_init_facet): Take into account __numpunct_cache.
150 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
151 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
153 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
154 Paolo Carlini <pcarlini@unitus.it>
156 * testsuite/performance/filebuf_copy.cc: New, testing char
159 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
160 Nathan C. Myers <ncm-nospam@cantrip.org>
162 * include/bits/fstream.tcc (_M_underflow): When the actual
163 end of file is reached, set 'uncommitted' mode to allow a
164 next write without an intervening seek (see C++98 27.8.1.1,2
166 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
168 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
170 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
171 sputc): Move inline, from here...
172 * include/std/std_streambuf.h: ... to here.
174 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
175 sputbackc, sungetc, sputc): Use __builtin_expect.
177 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
179 * docs/doxygen/mainpage.html: Use a useful title.
181 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
183 * docs/html/documentation.html: Remove assignment info.
184 * docs/html/17_intro/contribute.html: Edits.
185 * docs/html/17_intro/libstdc++-assign.tx: Remove.
187 * docs/html/test.html: Update.
191 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
192 Ulrich Drepper <drepper@redhat.com>
194 * testsuite/testsuite_performance.h: Tweak mallinfo.
196 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
197 Nathan C. Myers <ncm-nospam@cantrip.org>
199 * include/std/std_fstream.h (_M_filepos): Remove.
200 (_M_reading, _M_writing): New, encode the various I/O modes:
201 'read', 'write' and 'uncommitted'.
202 (sync): If there is something to flush, do it, then go to
204 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
205 with three different cases: __off > 0 (upon underflow),
206 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
208 (_M_underflow): Don't call overflow, set _M_reading to true
210 (pbackfail): Set _M_reading to true on pback creation, tweak.
211 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
212 set _M_writing to true on success, tweak.
213 (seekoff): Simplify, set _M_reading, _M_writing to false, call
214 _M_set_buffer(-1) ('uncommitted').
215 (open, close, setbuf): Set _M_reading, _M_writing to false and
216 call _M_set_buffer(-1), tweak.
217 (basic_filebuf): Don't set _M_buf_unified.
218 (_M_destroy_internal_buffer): Don't call setg and setp.
219 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
220 _M_writing and _M_set_buffer(-1).
221 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
222 _M_out_lim, _M_buf_unified): Remove.
223 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
224 (setp): Don't set _M_out_lim.
225 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
226 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
227 upon open the mode is 'uncommitted' and therefore the put area
229 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
230 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
231 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
232 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
233 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
234 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
235 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
236 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
237 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
238 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
239 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
240 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
241 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
242 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
243 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
244 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
245 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
246 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
247 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
248 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
250 * include/bits/fstream.tcc (showmanyc): Use only the
251 documented derivation interface to basic_streambuf (gptr(),
252 setg(), etc.) to work right with user specializations.
253 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
254 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
255 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
257 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
260 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
262 * configure.host (freebsd*): Set abi_baseline_pair.
263 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
264 (at or near first release) to 3.3.
265 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
266 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
267 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
269 * include/ext/mt_allocator.h: Portability.
270 * testsuite/testsuite_performance.h: Likewise.
272 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
274 * docs/html/17_intro/libstdc++-assign.txt: Update address.
276 * testsuite/performance/ifstream_getline.cc: Fix.
278 2003-06-23 Doug Gregor <dgregor@apple.com>
280 * include/bits/boost_concept_check.h: Don't use _D or _R for type
283 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
284 Nathan C. Myers <ncm-nospam@cantrip.org>
286 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
287 is now used only for filebuf, when _M_buf_unified is true.
288 epgtr() plays the role of _M_out_lim but it's only updated
289 upon overflow, underflow, uflow, seekoff/pos.
290 * include/bits/sstream.tcc (_M_underflow): New, implements
291 stringbuf::underflow and uflow.
292 (seekoff, seekpos): Tweak, use _M_update_egptr.
293 * include/std/std_sstream.h (str): Rewrote, deal correctly
294 with the new logic, in particular, when pptr() > egptr().
295 (_M_sync): When __testout && !__testin set all the get area
296 pointers to the current string end.
297 (_M_update_egptr): New, internal function updating egptr()
298 to the actual string end.
299 (_M_underflow): New, declare.
300 (underflow): Dispatch to _M_underflow(false).
301 (uflow): Dispatch to _M_underflow(true).
303 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
304 seekpos): Use only the documented derivation interface to
305 basic_streambuf (gptr(), setg(), etc.) to work right with
306 user specializations.
307 * include/std/std_sstream.h (str, _M_sync): Likewise.
309 2003-06-20 Doug Gregor <dgregor@apple.com>
311 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
312 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
313 dereference end iterator.
314 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
315 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
316 index equal to the length of a string.
317 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
318 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
319 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
320 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
321 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
322 * testsuite/23_containers/list_modifiers.cc: Don't dereference
323 singular reverse iterator.
324 * testsuite/23_containers/vector_bool.cc: Don't increment singular
326 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
328 2003-06-20 Doug Gregor <dgregor@apple.com>
330 * include/bits/basic_string.h (basic_string::replace): Dispatch
331 _InputIterator version based on _Is_integer.
332 * include/bits/basic_string.tcc (basic_string::replace):
333 Renamed replace(iterator, iterator, size_type, _CharT) to
335 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
336 Test basic_string::assign(_InputIterator, _InputIterator),
337 which calls basic_string::replace(iterator, iterator,
338 _Input_iterator, _InputIterator).
340 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
342 * testsuite/testsuite_performance.h (resource_counter): Don't use
343 mallinfo at the moment.
345 2003-06-20 Matthias Klose <doko@debian.org>
347 * configure.host: Set try_cpu to target_cpu for existing
350 2003-06-19 Andreas Jaeger <aj@suse.de>
352 * testsuite/Makefile.am (extract_symvers): Revert accidental
354 * testsuite/Makefile.in: Regenerate.
356 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
357 * configure: Regenerated.
359 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
361 * include/std/std_sstream.h (_M_sync): Make non virtual.
363 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
365 * testsuite/testsuite_performance.h (time_counter): New.
366 (resource_counter): New.
367 (report_performance): New.
368 (start_counters): New.
369 (stop_counters): New.
370 (clear_counters): New.
371 * testsuite/performance/allocator.cc: Instrument.
372 * testsuite/performance/cout_insert_int.cc: Same.
373 * testsuite/performance/complex_norm.cc: Same.
374 * testsuite/performance/filebuf_sputc.cc: New.
375 * testsuite/performance/fstream_seek_write.cc: Same.
376 * testsuite/performance/ifstream_getline.cc: Same.
377 * testsuite/performance/map_create_fill.cc: Same.
378 * testsuite/performance/ofstream_insert_float.cc: Same.
379 * testsuite/performance/ofstream_insert_int.cc: Same.
380 * testsuite/performance/string_append.cc: Convert.
381 * scripts/check_performance: New.
382 * testsuite/Makefile.am (check-performance): New.
385 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
386 Benjamin Kosnik <bkoz@redhat.com>
388 * include/std/std_sstream.h (setbuf): Check __n >= 0.
389 * include/bits/fstream.tcc (setbuf): Tweak.
391 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
393 * include/bits/sstream.tcc (seekoff): We can't seek beyond
394 _M_out_lim, therefore _M_move_out_cur boils down to simply
396 (seekpos): Likewise, clean up.
398 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
399 Paolo Carlini <pcarlini@unitus.it>
401 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
402 simply equivalent to the unbuffered case (0, 0) as far as
403 _M_buf_size is concerned.
405 2003-06-18 Andreas Jaeger <aj@suse.de>
407 * testsuite/Makefile.am (new-abi-baseline): Create baseline
409 (baseline_file): Use baseline_dir.
411 (mkinstalldirs): New.
413 * acinclude.m4: Rename baseline_file to baseline_dir, strip
414 filename from baseline_dir.
416 * testsuite/Makefile.in: Regenerated.
417 * Makefile.in: Regenerated.
418 * aclocal.m4: Regenerated.
419 * configure: Regenerated.
421 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
423 * configure.in: Missed check_survey bit.
424 * configure: Regenerated.
426 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
429 * config/abi/extract_symvers: Move to...
430 * scripts/extract_symvers: ...here.
431 * mkcheck.in: Move to..
432 * scripts/check_survey.in: ...here.
433 * testsuite_flags.in: Move to..
434 * scripts/testsuite_flags.in: ...here.
435 * configure.in: Change check and testsuite_flags locations.
436 * configure: Regenerate.
437 * testsuite/Makefile.am (current_symbols.txt): Change location.
438 * testsuite/Makefile.in: Regenerate.
439 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
440 location of testsuite_flags.
441 * Makefile.am (check-script): Move..
442 (check-script-install): Move...
443 * testsuite/Makefile.am: ... here.
444 * testsuite/Makefile.in: Regenerate.
445 * Makefile.in: Regenerate.
447 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
449 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
451 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
453 * Makefile.am (check-abi): Move...
454 (new-abi-baseline): Move...
455 * testsuite/Makefile.am: ...here.
456 (new-abi-baseline): Conditionalize.
457 (check-abi): Conditionalize.
458 (check-abi-verbose): New.
459 * Makefile.in: Regenerate.
460 * testsuite/Makefile.in: Regenerate.
461 * configure.in: Consolidate testsuite configure bits.
462 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
463 * configure: Regenerate.
464 * aclocal.m4: Regenerate.
465 * testsuite/abi_check.cc: Add --check-verbose.
466 Only output detailed information if --check-verbose.
468 2003-06-16 Andreas Jaeger <aj@suse.de>
470 * testsuite/abi_check.cc: Create summary report.
472 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
474 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
475 for systems with BUFSIZ != 8192.
476 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
477 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
480 2003-06-16 Andreas Jaeger <aj@suse.de>
482 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
483 check-abi multilib aware.
484 * aclocal.m4: Regenerate.
485 * configure: Regenerate.
487 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
488 Andreas Jaeger <aj@suse.de>
490 * configure.host: Set x86_64 abi_baseline pair correctly.
492 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
494 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
495 fix for missing seeks between gets and puts into...
496 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
497 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
498 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
499 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
500 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
501 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
503 2003-06-15 Richard Henderson <rth@redhat.com>
505 * config/linker-map.gnu: Export virtual function thunks for
508 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
510 * config/abi/i686-pc-linux-gnu: To..
511 * config/abi/i486-linux-gnu: ...this.
512 * config/abi/alphaev67-unknown-linux-gnu: To..
513 * config/abi/alpha-linux-gnu: ...this.
514 * config/abi/ia64-unknown-linux-gnu: To...
515 * config/abi/ia64-linux-gnu: ...this.
516 * config/abi/x86_64-unknown-linux-gnu: To...
517 * config/abi/x86_64-linux-gnu: ...this.
518 * config/abi/i386-unknown-freebsd4: To...
519 * config/abi/i386-freebsd4: ...this.
520 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
522 * configure.host: abi_baseline_triplet to abi_baseline_pair.
523 Simplify cpu bits so that abi_baseline_pair can use the same
525 * acinclude.m4: Same.
526 * aclocal.m4: Regenerate.
527 * configure.in: Can't get enable_abi_check to yes unless native.
528 * configure: Regenerate.
530 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
532 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
533 fix for missing seeks between gets and puts into...
534 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
535 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
536 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
537 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
538 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
539 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
540 for missing seeks between gets and puts.
541 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
542 * testsuite/data/seekoff-1.tst: New.
543 * testsuite/data/seekoff-2.tst: New.
544 * testsuite/data/seekpos-1.tst: New.
545 * testsuite/data/seekpos-2.tst: New.
547 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
549 Avoid multi-processor bus contention on increment/decrement-and-
550 test of the reference count in the empty-string object, by comparing
551 addresses first, and never touching the reference count of the empty-
553 * include/bits/basic_string.h:
554 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
556 (_Rep::_S_empty_rep()): New accessor.
557 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
558 a base class _Rep_base.
559 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
560 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
561 since no longer must increment its refcount.
562 * include/bits/basic_string.tcc:
563 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
564 return immediately. The former might be unnecessary. The latter
565 prevents begin() and end() from cloning it unnecessarily.
566 (_S_construct(_InIterator, _InIterator, const _Alloc&,
567 input_iterator_tag), _S_construct(_InIterator, _InIterator,
568 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
569 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
570 (_M_mutate): Check for the empty string and treat it as shared.
571 This is necessary here because _M_mutate is sometimes called with
572 all-zero arguments; in all other uses of _M_is_shared, the test comes
575 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
577 * src/allocator-inst.cc: Explicitly instantiate.
578 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
580 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
582 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
584 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
585 * aclocal.m4: Regenerate.
586 * Makefile.am (SUBDIRS): Remove libio.
587 * Makefile.in: Regenerate.
588 * configure.in: Same.
589 * configure: Regenerate.
590 * config/io/basic_file_libio.cc: Remove.
591 * config/io/basic_file_libio.h: Remove.
592 * config/io/c_io_libio_codecvt.c: Remove.
593 * config/io/c_io_libio.h: Remove.
595 * src/Makefile.am: Same.
596 * src/Makefile.in: Regenerate.
597 * docs/html/configopts.html: Edits.
598 * docs/html/explanations.html: Edits.
600 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
602 * include/bits/stl_alloc.h (__debug_alloc): Move out.
603 (__malloc_alloc): Same.
604 (__pool_alloc): Same.
607 * include/bits/allocator.h: ...this.
608 * include/bits/stl_deque.h: Modify comment.
609 * include/bits/stl_tree.h: Modify include.
610 * include/std/std_memory.h: Same.
611 * include/ext/rope: Same.
612 * include/ext/slist: Same.
613 * include/std/std_vector.h: Same.
614 * include/std/std_stack.h: Same.
615 * include/std/std_queue.h: Same.
616 * include/std/std_list.h: Same.
617 * include/std/std_deque.h: Same.
618 * include/backward/alloc.h: Same.
619 * include/ext/debug_allocator.h: New.
620 * include/ext/malloc_allocator.h: New.
621 * include/ext/pool_allocator.h: New.
622 * include/ext/new_allocator.h: New.
623 * include/bits/pthread_allocimpl.h: Remove.
624 * include/bits/stl_pthread_alloc.h: Remove.
625 * include/Makefile.am (ext_headers): Add.
626 * include/Makefile.in: Regenerate.
627 * src/stl-inst.cc: Use __gnu_cxx namespace.
628 * src/stl-inst.cc: Move to...
629 * src/allocator-inst.cc: Here.
630 * src/Makefile.am (sources): Update.
631 * src/Makefile.in: Regenerate.
632 * config/linker-map.gnu: Remove __pool_alloc bits.
633 * testsuite/ext/headers.cc: Add.
634 * testsuite/ext/allocators.cc: Fixup.
636 2003-06-11 Stefan Olsson <stefan@snon.net>
637 Ola Rönnerup <fnolis@home.se>
639 * include/Makefile.am (ext_headers): Add.
640 * include/Makefile.in: Regenerate.
641 * include/ext/mt_allocator.h: New file.
643 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
645 * include/bits/fstream.tcc (close): Clean up a bit.
647 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
649 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
650 - the saved _M_in_cur, that is - cannot be null.
651 (sync): Constify a variable.
653 * include/std/std_streambuf.h: Tweak a comment.
654 (in_avail): Constify a variable.
656 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
658 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
659 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
660 correctness of container::iterator typedefs. Fix whitespace.
661 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
663 * docs/html/documentation.html: Regenerate.
665 * include/bits/basic_string.h, include/bits/basic_string.tcc,
666 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
667 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
668 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
669 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
670 include/bits/stl_vector.h, include/bits/vector.tcc,
671 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
672 Change _Iter names to _Iterator, and __pos to __position.
674 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
675 include/bits/stl_multiset.h, include/bits/stl_set.h:
676 Remove emacs markers.
678 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
680 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
682 * include/bits/fstream.tcc (overflow): According to
683 27.5.2.4.5, overflow() returns not_eof(eof()).
684 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
685 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
687 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
689 * include/bits/fstream.tcc (_M_underflow): Check overflow return
690 value; tweak slightly.
692 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
694 * include/bits/fstream.tcc (_M_underflow): Do not special
695 case the unbuffered case, which really means simply a one char
697 (basic_filebuf): Initialize _M_buf_size.
698 (setbuf): Unbuffered means _M_buf_size == 1, since only
699 _M_buf_size - 1 == 0 chars are going to be used for the
700 put area and 1 for the get area.
701 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
702 (~basic_streambuf): Tweak.
703 (basic_streambuf): Do not initialize _M_buf_size.
704 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
705 (~basic_filebuf): Tweak.
706 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
707 unbuffered situation (i.e., put area pointers NULL).
708 * include/bits/streambuf.tcc (sbumpc): Clean up.
709 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
710 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
711 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
712 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
713 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
714 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
715 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
717 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
719 * acinclude.m4: Move all AM_CONDITIONAL calls out.
720 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
722 * configure.in: Centralize AM_CONDITIONALs so that they are always
723 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
724 * aclocal.m4, configure: Regenerated.
726 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
728 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
730 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
732 * include/bits/stl_iterator.h
733 (reverse_iterator::reverse_iterator()): Apply DR235: default
734 constructor default-initializes data member. Instantiated on a
735 pointer type, the member has to end up equal to zero.
737 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
739 * include/bits/stl_alloc.h: Cleanups.
740 * include/ext/functional: Same.
741 * include/ext/hash_map: Same.
742 * include/ext/hash_set: Same.
743 * include/ext/iterator: Same.
744 * include/ext/memory: Same.
745 * include/ext/numeric: Same.
746 * include/ext/rb_tree: Same.
747 * include/ext/ropeimpl.h: Same.
748 * include/ext/slist: Same.
749 * include/ext/stdio_filebuf.h: Same.
750 * include/ext/stdio_sync_filebuf.h: Same.
751 * include/ext/stl_rope.h: Move to...
752 * include/ext/rope: ...here.
753 * include/ext/stl_hash_fun.h: Move to...
754 * include/ext/hash_fun.h: ...here.
755 * include/ext/stl_hashtable.h: Move to...
756 * include/ext/hashtable.h: ...here.
757 * include/backward/hashtable.h: Reflect new names.
758 * include/Makefile.am: Same.
759 * include/Makefile.in: Regenerated.
761 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
764 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
765 * include/bits/stl_algobase.h: Tweak.
766 * include/std/std_fstream.h: Move _M_buf_size to...
767 * include/std/std_streambuf.h: ...here. Modify.
768 * include/bits/streambuf.tcc: Same.
769 * testsuite/testsuite_hooks.h: Tweak.
770 * testsuite/testsuite_io.h (constraint_filebuf): New.
771 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
772 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
773 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
774 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
775 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
776 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
777 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
778 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
779 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
780 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
781 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
782 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
783 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
784 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
785 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
786 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
787 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
788 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
789 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
790 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
791 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
792 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
793 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
794 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
795 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
796 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
797 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
798 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
799 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
800 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
801 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
802 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
803 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
804 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
805 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
806 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
807 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
808 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
809 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
810 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
811 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
812 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
813 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
814 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
815 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
816 * testsuite/data/sgetc.txt: New.
817 * testsuite/data/sgetn.txt: New.
819 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
822 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
823 Deal with width() smaller than zero.
824 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
825 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
826 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
827 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
828 operator<<(basic_ostream, const basic_string&)): Likewise.
830 * testsuite/27_io/basic_istream/extractors_character/char/
831 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
832 * testsuite/27_io/basic_ostream/inserters_character/char/
833 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
834 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
835 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
837 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
839 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
840 .gch compilation works.
841 * aclocal.m4, configure: Regenerate.
842 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
845 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
847 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
848 erase(iterator), erase(iterator, iterator), c_str,
849 compare(const basic_string&)): Constify various variables.
850 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
851 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
852 _S_create, resize, _M_replace, _M_replace_safe,
853 append(const basic_string&), append(const basic_string&, size_type,
854 size_type), append(const _CharT*, size_type), append(size_type,
855 _CharT), operator+(const _CharT*, const basic_string&),
856 operator+(_CharT, const basic_string&), replace(iterator, iterator,
857 size_type, _CharT), find(const _CharT*, size_type, size_type),
858 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
859 rfind(_CharT, size_type), compare(size_type, size_type,
860 const basic_string&), compare(size_type, size_type,
861 const basic_string&, size_type, size_type), compare(const _CharT*),
862 compare(size_type, size_type, const _CharT*), compare(size_type,
863 size_type, const _CharT*, size_type)): Likewise.
865 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
867 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
868 'if' branch less obscure.
870 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
873 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
875 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
876 (__atomic_add): likewise.
878 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
880 * include/bits/sstream.tcc (pbackfail): Minor clean up and
881 reformatting, consistent with basic_filebuf::pbackfail.
883 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
886 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
887 __attribute__ ((__unused__)).
888 * config/os/aix/atomicity.h: Likewise.
890 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
893 * include/bits/fstream.tcc (pbackfail): If the pback buffer
894 is already active don't try to store in it a second char.
895 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
897 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
899 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
901 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
904 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
906 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
907 instead of unnecessarily taking the address of _M_pback.
908 (xsgetn): Simplify slightly for a single char pback buffer.
910 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
912 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
913 variables and two 'if', clean up.
915 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
917 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
918 not _M_out_end, since the former actually points to the string
920 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
922 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
924 * docs/doxygen/filter: New file.
925 * docs/doxygen/filter.sed: New file.
926 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
927 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
928 * docs/html/documentation.html: Fix links to doxygen pages.
930 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
932 * include/bits/fstream.tcc (_M_convert_to_external): Don't
933 check for __ilen > 0.
935 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
938 * include/bits/stl_iterator.h (class __normal_iterator):
939 Don't inherit from iterator, add missing typedefs.
941 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
943 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
944 * testsuite/24_iterators/reverse_iterator/1.cc: New.
945 * testsuite/24_iterators/reverse_iterator/2.cc: New.
946 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
949 2003-05-27 Steve Ellcey <sje@cup.hp.com>
951 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
953 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
954 _LIBUNWIND_STD_ABI is set.
956 2003-05-26 Brendan Kehoe <brendan@zen.org>
958 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
959 make sure the number of digits required after the decimal-point
960 (if any) is exactly the value returned by frac_digits().
961 * testsuite/22_locale/money_get/get/char/9.cc: New.
962 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
964 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
966 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
969 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
972 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
973 (_M_pback): No array necessary.
974 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
975 unbuffered case, coalesec into ...
976 (basic_filebuf::overflow): ...this.
977 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
978 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
980 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
982 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
983 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
984 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
985 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
986 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
987 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
988 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
989 libsupc++/eh_unex_handler.cc, libsupc++/exception,
990 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
991 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
992 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
993 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
994 Replace "GNU CC" with "GCC".
996 * include/backward/new.h: Replace "GNU CC" with "GCC".
998 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
1001 * configure.in: Switch target to host, don't assume newlib.
1002 (target_alias): Remove.
1003 * configure: Regenerate.
1004 * acinclude.m4: Same.
1005 * aclocal.m4: Regenerate.
1006 * configure.target: Same. Rename to...
1007 * configure.host: This.
1009 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
1011 * include/std/std_fstream.h (_S_pback_size): Remove definition.
1012 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
1014 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
1015 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
1016 of _S_pback_size for systems with no COMDAT or weak support.
1017 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
1018 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
1019 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
1020 * testsuite/27_io/basic_fstream/3.cc: Likewise.
1021 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1022 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
1023 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
1024 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
1025 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
1027 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
1029 * include/bits/fstream.tcc (_M_underflow): Simplify:
1030 !__testout implies _M_filepos == _M_in_end, therefore
1031 the first _M_file.seekoff call is never issued.
1033 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
1035 * configure.in: Sort cross table.
1036 * configure: Regenerate.
1038 2003-05-22 Brad Spencer <spencer@infointeractive.com>
1041 * configure.in: Add Solaris cross bits.
1043 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1045 * libstdc++-v3/config/os/mingw32/os_defines.h
1046 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
1047 (NOMINMAX): Define. Update copyright year.
1049 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
1051 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
1053 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
1055 * docs/html/faq/index.html: Fix typo.
1056 * docs/html/faq/index.txt: Regenerate.
1058 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
1060 * docs/html/test.html: Fix markup.
1062 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1064 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
1066 Update copyright year.
1068 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
1070 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
1072 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
1074 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
1075 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
1077 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1079 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
1080 Cast via void* to avoid -Wcast-align warnings.
1081 (__default_alloc_template::_S_refill): Likewise.
1083 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
1085 * testsuite/README: Move to...
1086 * docs/html/test.html: ...here. Add documentation.
1087 * docs/html/install.html: Move testing bits out..
1088 * docs/html/documentation.html: Add separate testing link.
1089 * testsuite/performance: Add.
1090 * testsuite/performance/allocator.cc: New.
1091 * testsuite/performance/complex_norm.cc: New.
1092 * testsuite/performance/cout_insert_int.cc: New.
1093 * testsuite/performance/fstream_seek_write.cc: New.
1094 * testsuite/performance/ifstream_getline.cc: New.
1095 * testsuite/performance/map_create_fill.cc: New.
1096 * testsuite/performance/ofstream_insert_float.cc: New.
1097 * testsuite/performance/ofstream_insert_int.cc: New.
1098 * testsuite/performance/string_append.cc: New.
1099 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
1102 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
1105 * include/std/std_complex.h (pow): Tidy.
1107 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
1109 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
1110 that upon filebuf::close() 27.8.1.1,3 is enforced.
1112 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
1114 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
1116 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
1117 Nathan Myers <ncm@cantrip.org>
1119 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
1120 _M_convert_to_external only once (_M_buf_size is now the size of
1121 the put area + 1 for the overflow char of a full area); call
1122 _M_set_buffer instead of _M_set_indeterminate.
1123 (setbuf): Don't accept a buffer smaller than 2 chars.
1124 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
1125 instead of _M_set_determinate.
1126 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
1127 (seekoff): Likewise.
1128 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
1129 std::ios_base::openmode, bool, size_t),
1130 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
1132 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
1133 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
1135 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
1136 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
1137 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
1138 the put area is now BUFSIZ - 1.
1139 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
1140 that now the smallest _M_buf_size is 2 (still fails, for the same
1143 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
1145 * testsuite/thread/pthread4.cc: Tweak test.
1147 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
1149 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
1150 excess errors dg marker, use dg-errors instead.
1151 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
1152 * testsuite/20_util/auto_ptr_neg.cc: Same.
1154 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
1156 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
1158 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
1159 Initialize _M_codecvt.
1160 (basic_filebuf::imbue): Same.
1161 (basic_filebuf::showmanyc): Use it.
1162 (basic_filebuf::underflow): Use it.
1163 (basic_filebuf::_M_convert_to_external): Use it.
1164 (basic_filebuf::seekoff): Use it.
1165 (basic_filebuf::imbue): Use it, tweaks.
1166 * include/bits/localefwd.h (__check_facet): New.
1167 * include/bits/locale_classes.h: Tweaks.
1168 * include/bits/locale_facets.tcc: Tweaks.
1169 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
1170 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
1171 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
1172 * include/bits/basic_ios.tcc: Same.
1173 * include/bits/istream.tcc: Same.
1174 * include/bits/ostream.tcc: Same.
1175 * include/std/std_streambuf.h: Same.
1176 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
1177 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
1178 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
1179 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
1180 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
1181 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
1183 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
1185 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
1186 unnecessary includes and unused string literals.
1187 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
1188 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
1189 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
1190 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
1192 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
1194 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
1196 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
1198 * include/std/std_fstream.h (_M_convert_to_external): Change
1199 to return bool, take two less streamsize parameters.
1200 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
1201 consistently definition.
1202 (_M_overflow): Adjust call points.
1204 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
1206 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
1208 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
1210 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
1211 * testsuite/Makefile.in: Regenerate.
1213 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
1215 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
1216 * testsuite/Makefile.in: Regenerate.
1218 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
1221 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
1222 (acos): Handle integer argument.
1241 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
1242 (__enable_if): Likewise.
1243 * testsuite/26_numerics/cmath/overloads.C: New test.
1245 2003-05-10 Petur Runolfsson <peturr02@ru.is>
1250 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
1251 implementation, based on old wchar_t specialization, add support
1252 for codecvt::in() return value of codecvt_base::noconv, remove
1253 _M_file.sys_ungetc() call.
1254 * include/std/std_fstream.h (basic_file::underflow,
1255 basic_file::uflow, basic_file::_M_underflow): Remove
1256 specialization declarations, call _M_underflow from generic versions
1257 of underflow and uflow.
1258 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
1259 basic_file::_M_underflow): Remove specializations.
1260 * src/Makefile.am (sources): Remove fstream.cc.
1261 * src/Makefile.in: Regenerated.
1262 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
1263 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
1264 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
1265 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
1267 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
1269 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
1271 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
1273 (__basic_file::xsputn): Same.
1274 (__basic_file::seekoff): Same.
1275 (__basic_file::seekpos): Same.
1276 (__basic_file::showmanyc): Same.
1277 * config/io/basic_file_stdio.cc: Same.
1278 * include/std/std_fstream.h: Same.
1279 * include/bits/fstream.tcc: Same.
1280 * src/fstream.cc: Same.
1281 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
1283 2003-05-10 Petur Runolfsson <peturr02@ru.is>
1288 * include/ext/stdio_sync_filebuf.h: New file.
1289 (basic_stdiobuf): New.
1290 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
1291 * include/Makefile.in: Regenerate.
1292 * include/bits/ios_base.h (Init::_S_create_buffers,
1293 Init::_S_destroy_buffers): Remove declarations.
1294 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
1295 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
1296 * src/ios.cc (Init::_S_create_buffers,
1297 Init::_S_destroy_buffers): Remove.
1298 (Init::Init): Create and use syncronized buffers.
1299 (ios_base::sync_with_stdio): Destroy syncronized buffers,
1300 create and install unsyncronized buffers.
1301 * testsuite/27_io/objects/char/10.cc: New test.
1302 * testsuite/27_io/objects/char/9.cc: New test.
1303 * testsuite/27_io/objects/char/9661-1.cc: New test.
1304 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
1305 * testsuite/27_io/objects/char/9661-2_xin.in: New.
1306 * testsuite/27_io/objects/wchar_t/1.cc: New test.
1307 * testsuite/27_io/objects/wchar_t/10.cc: New test.
1308 * testsuite/27_io/objects/wchar_t/2.cc: New test.
1309 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
1310 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
1311 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
1312 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
1313 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
1314 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
1315 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
1316 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
1317 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
1318 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
1319 * testsuite/27_io/objects/wchar_t/5.cc: New test.
1320 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
1321 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
1322 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
1323 * testsuite/27_io/objects/wchar_t/6.cc: New test.
1324 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
1325 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
1326 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
1327 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
1328 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
1329 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
1330 * testsuite/27_io/objects/wchar_t/7.cc: New test.
1331 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
1332 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
1333 * testsuite/27_io/objects/wchar_t/8.cc: New test.
1334 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
1335 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
1336 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
1337 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
1338 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
1339 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
1340 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
1341 * testsuite/ext/stdiobuf_char.cc: New test.
1342 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
1344 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
1346 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
1347 unnecessary includes and unused string literals.
1348 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
1350 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
1352 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
1354 2003-05-07 Richard Henderson <rth@redhat.com>
1357 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
1358 (__cxa_end_catch): Likewise.
1359 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
1360 _Unwind_Resume_or_Rethrow.
1361 * libsupc++/eh_personality.cc (empty_exception_spec): New.
1362 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
1363 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
1364 exceptions. Don't push terminate/unexpected to cxa functions.
1365 (__cxa_call_unexpected): Remove foreign exception fixmes.
1367 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
1369 * testsuite/27_io/ios_base/cons: New.
1370 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
1371 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
1373 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
1375 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
1377 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
1378 there is no buffer or __testget == !__testinit.
1381 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
1382 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
1384 * include/std/std_fstream.h (_M_destroy_pback): Don't set
1385 unnecessarily _M_pback_cur_save and _M_pback_end_save.
1387 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
1389 * include/std/std_sstream.h (_M_sync): Minor tweak.
1391 * include/bits/fstream.tcc (close): No need to call
1392 _M_destroy_pback, setting _M_pback_init to false suffices
1395 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
1397 * include/bits/stl_algo.h: Enums as _S_.
1398 * include/bits/stl_tree.h: Same.
1399 * include/bits/stl_bvector.h: Same.
1400 * include/bits/ios_base.h: Same.
1401 * include/bits/stl_alloc.h: Same.
1402 * include/ext/stl_hashtable.h: Same.
1403 * src/ios.cc: And here.
1405 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
1406 * include/bits/sstream.tcc: Same.
1408 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
1410 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
1412 * include/bits/locale_facets.h (__num_base): Remove protected.
1413 Use _S_[io]* names for enumerations.
1414 (_S_format_int): Remove.
1415 * include/bits/locale_facets.tcc: Same.
1416 * src/locale.cc: Same.
1418 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
1420 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
1422 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
1423 * docs/html/faq/index.txt: Regenerated.
1425 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
1426 Matt Kraai <kraai@alumni.cmu.edu>
1428 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
1431 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
1433 * configure.target (mips*): Use the generic atomicity.h by default.
1435 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
1436 (Inspired by an alternate patch from Danny Smith.)
1438 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
1439 (_Swap_lock_struct<>): ...and the horse it rode in on.
1440 * src/globals.cc (_Swap_lock_struct<>): Likewise.
1441 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
1442 member to support...
1443 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
1444 visibility rules related to POSIX threads.
1445 * testsuite/thread/pthread7-rope.cc: New test.
1447 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
1449 * testsuite/21_strings/basic_string/find/char/3.cc: New
1450 file, testing basic_string<char>::find_first_not_of.
1451 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
1452 Likewise for basic_string<wchar_t>.
1454 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
1456 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
1458 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
1460 * include/Makefile.am (CLEANFILES): Remove PCH files in target
1462 * include/Makefile.in: Regenerate.
1464 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
1466 * include/std/std_sstream.h (str()): Tidy.
1468 2003-05-02 Nathan Myers <ncm@cantrip.org>
1469 Paolo Carlini <pcarlini@unitus.it>
1471 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
1473 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
1475 * include/bits/basic_string.h (swap): Remove redundant template
1476 parameters from declaration of non-template member function.
1478 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
1480 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
1481 * configure.in: Move libintl.h header test...
1482 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
1483 the NLS-related test results into one symbol.
1484 * src/functexcept.cc: Use it here.
1485 * aclocal.m4, config.h.in, configure: Regenerated.
1487 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
1489 * include/bits/sstream.tcc (overflow): Instead of calling
1490 str(), then _M_string.reserve, thus copying the contents
1491 of the current buffer two times, just copy the latter in
1492 a temporary, then use the 'swap trick'.
1494 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
1496 * include/std/std_sstream.h (str()): Revert the best of the
1497 previous 'improvement', incorrect due to the COW nature of
1498 v3 basic_string; simplify.
1500 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
1502 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
1503 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
1505 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
1507 * testsuite/abi_check.cc (check_version): Update known versions.
1508 Check added symbols for version_name != base version. Add missing
1509 symbols to incompatible list.
1511 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
1513 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
1514 * aclocal.m4: Regenerated.
1515 * configure: Regenerated.
1517 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
1519 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
1520 Const-ify some variables.
1521 (basic_streambuf::xsputn): Likewise; change the type of some
1522 variables to size_t.
1523 (__copy_streambufs): Change some variables to size_t.
1525 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
1527 * include/std/std_sstream.h (str()): Avoid constructing
1528 a basic_string temporary not only when it would turn out
1529 to be zero-sized but also when identical to the current
1532 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
1534 * include/ext/stdio_filebuf.h
1535 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
1536 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
1537 Shorten a bit (-10 lines) by factoring out some code.
1539 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
1541 * acinclude.m4: Add bit missing from previous patch.
1542 * aclocal.m4, configure: Regenerated.
1544 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
1546 * docs/doxygen/mainpage.html: Bring up to date.
1547 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
1549 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
1550 breaks everything. Don't scan them.
1551 * docs/html/documentation.html: Point to "Write after approval"
1554 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
1556 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
1557 of libc if message translations are being used. Fix info text in
1558 xieee_1003.1-2001 case.
1559 * aclocal.m4, configure: Regenerate.
1561 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
1562 Loren J. Rittle <ljrittle@acm.org>
1563 Martin v. Loewis <martin@v.loewis.de>
1565 * config/cpu/i386/atomicity.h: New file.
1567 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
1569 * include/bits/fstream.tcc (open): Change to single return.
1571 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
1573 * include/std/std_sstream.h (underflow): Change to single return.
1575 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
1577 * include/std/std_streambuf.h (_M_buf): is currently
1578 used only for basic_filebuf, therefore move it there.
1579 (basic_streambuf(), ~basic_streambuf()): Adjust.
1580 * include/std/std_fstream.h (_M_buf): Moved here.
1581 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
1582 is actually redundant for basic_stringbuf.
1583 (_M_really_sync): Likewise.
1584 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
1585 * include/bits/sstream.tcc (seekoff): Adjust.
1587 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
1589 * src/localename.cc: Standardize exception strings.
1590 * src/locale.cc: Same.
1592 * include/bits/basic_string.tcc: Same.
1593 * include/bits/basic_ios.tcc: Same.
1594 * include/std/std_bitset.h: Same.
1595 * include/ext/ropeimpl.h: Same.
1596 * include/bits/stl_vector.h: Same.
1597 * include/bits/stl_deque.h: Same.
1598 * include/bits/stl_bvector.h: Same.
1599 * config/locale/generic/c_locale.cc: Same.
1600 * config/locale/gnu/c_locale.cc: Same.
1601 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
1603 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
1605 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
1607 * include/std/std_streambuf.h (_M_buf_size): is currently
1608 used only for basic_filebuf, therefore move it there.
1609 (basic_streambuf(), ~basic_streambuf()): Adjust.
1610 * include/std/std_fstream.h (_M_buf_size): Moved here.
1611 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
1613 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
1615 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
1616 _M_buf_size (synced input is now correctly dealt with
1617 elsewhere); when the output buffer is full don't fall back
1618 to a snextc-sputc loop, call overflow instead.
1620 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
1622 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
1623 the innermost 'if' by factoring out some code.
1625 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
1627 * configure.in: Test for libintl.h.
1628 * include/bits/c++config: Define __N for everybody.
1629 * include/bits/basic_string.h, include/bits/stl_bvector.h,
1630 include/bits/stl_deque.h, include/bits/stl_vector.h,
1631 include/std/std_bitset.h: Wrap all __throw* text with __N.
1632 * po/Makefile.am (pot): New rule, mostly working.
1633 * src/functexcept.cc: Call gettext on all __throw* arguments when
1634 -fexceptions is in effect.
1635 * po/Makefile.in, config.h.in, configure: Regenerate.
1637 2003-04-28 Petur Runolfsson <peturr02@ru.is>
1640 * include/bits/ios_base.h (Init::_S_ios_create,
1641 Init::_S_ios_destroy): Remove declarations.
1642 (Init::_S_create_buffers,
1643 Init::_S_destroy_buffers): Declare
1644 * src/ios.cc (Init::_S_ios_create): Remove
1645 (Init::_S_create_buffers): Create buffers and add to streams.
1646 (Init::_S_ios_destroy): Rename to...
1647 (Init::_S_destroy_buffers): this.
1648 (Init::Init): Only construct streams once.
1649 (Init::~Init): Flush streams, don't destroy them.
1650 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
1651 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
1652 * testsuite/27_io/objects/char/5.cc: New test.
1653 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
1654 * testsuite/27_io/objects/char/6.cc: New test.
1655 * testsuite/27_io/objects/char/7.cc: New test.
1657 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
1659 * testsuite/27_io/objects/char/8.cc: New test.
1661 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
1663 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
1664 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
1666 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
1668 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
1669 _M_destroy_pback. _M_pback_create to
1670 _M_create_pback. _M_underflow_common to
1671 _M_underflow. _M_really_overflow to _M_overflow.
1672 * include/bits/fstream.tcc: Same.
1673 * src/fstream.cc: Same.
1674 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
1675 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
1676 * include/bits/streambuf.tcc: Same.
1677 * include/bits/fstream.tcc: Same.
1678 * include/bits/sstream.tcc: Same.
1680 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
1682 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
1683 from fixed size array.
1684 (locale): Change _S_categories as well.
1686 * include/bits/locale_facets.tcc: Tweak.
1687 * config/locale/gnu/c_locale.cc: Assign _S_categories.
1688 * config/locale/generic/c_locale.cc: Same.
1689 * src/locale.cc: Tweak.
1690 * src/globals.cc: Change facet_name to name_vec, add names_c.
1691 * src/localename.cc: Use them.
1692 (locale::_Impl::~_Impl): Destroy _M_names.
1693 (locale::_Impl::_Impl): Create _M_names.
1695 2003-04-27 Andreas Schwab <schwab@suse.de>
1697 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1698 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
1700 2003-04-27 Nathan Myers <ncm@cantrip.org>
1702 Move some basic_string members out of line because
1703 they are too big to reasonably be inline.
1704 * include/bits/basic_string.h
1705 (assign(const basic_string&, size_type, size_type),
1706 assign(const _CharT*, size_type),
1707 insert(size_type, const basic_string&, size_type, size_type),
1708 insert(size_type, const _CharT*, size_type),
1709 replace(size_type, size_type, const _CharT*, size_type)):
1710 Move from here to...
1711 * include/bits/basic_string.tcc: ...here.
1713 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
1715 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
1716 the innermost 'if' by factoring out some code.
1718 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
1720 * include/bits/streambuf.tcc (__copy_streambufs): Don't
1721 use in_avail(), simplify.
1723 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
1725 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
1726 in basic_stringbuf it's unused.
1728 * include/std/std_sstream.h (underflow): consistently use
1729 _M_in_cur, not gptr().
1731 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
1732 Phil Edwards <pme@gcc.gnu.org>
1734 * testsuite_flags.in: Guard against the possibility
1735 of having "xgcc" as a part of a folder name in the
1736 path to the GCC build folder.
1737 * testsuite/Makefile.am: Likewise.
1738 * testsuite/Makefile.in: Regenerated.
1740 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
1743 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
1744 exception specifications.
1745 (basic_filebuf::close): Same.
1746 (basic_filebuf::_M_pback_destroy): Same.
1747 (basic_filebuf::_M_destroy_internal_buffer): Same.
1748 (basic_filebuf): Remove __res_type typedef.
1749 * src/fstream.cc: Same.
1750 * include/bits/fstream.tcc
1751 (basic_filebuf::_M_convert_to_external): Simplify.
1752 (basic_filebuf::seekoff): Use has_facet before use_facet.
1753 (basic_filebuf::close): Add exception specification of throw().
1754 * testsuite/27_io/basic_filebuf/cons: New.
1755 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
1756 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
1757 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
1758 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
1760 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
1762 * include/bits/locale_classes.h
1763 (locale::_S_extra_categories_size): Remove.
1764 * src/locale.cc: Remove _S_extra_categories_size.
1765 * src/localename.cc: Same.
1766 * config/locale/gnu/c_locale.cc: Same.
1767 * config/locale/generic/c_locale.cc: Same.
1769 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
1771 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
1773 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
1775 * docs/html/17_intro/howto.html: Update some links.
1776 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
1777 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
1778 * docs/html/ext/howto.html: Link to demangler notes and API.
1779 * docs/html/faq/index.html: Remove trailing whitespace.
1780 (1.4, 2.4, 3.8, 4.1): Bring up to date.
1781 (5.6): Change to a bulleted list.
1783 * docs/html/faq/index.txt, docs/html/documentation.html,
1784 docs/html/17_intro/porting.html: Regenerate.
1786 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
1788 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
1789 belongs to basic_filebuf.
1790 * testsuite/27_io/basic_fstream/3.cc: Likewise.
1791 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1792 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
1793 instantiation (now belongs to basic_filebuf).
1794 * testsuite/27_io/basic_iostream/3.cc: Likewise.
1795 * testsuite/27_io/basic_istream/3.cc: Likewise.
1796 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
1797 _S_pback_size now belongs to basic_filebuf.
1798 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
1799 instantiation (now belongs to basic_filebuf).
1800 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
1801 belongs to basic_filebuf.
1802 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
1803 instantiation (now belongs to basic_filebuf).
1804 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
1805 _S_pback_size now belongs to basic_filebuf.
1806 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
1807 instantiation (now belongs to basic_filebuf).
1808 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
1810 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
1811 instantiation (now belongs to basic_filebuf).
1812 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
1814 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
1816 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
1817 * configure: Regenerated.
1819 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
1821 * config/locale/generic/c_locale.h (__convert_from_v): Use
1824 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
1826 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
1827 implementation only.
1828 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
1829 Comment and change to comply with DR 60 and the effect on gcount().
1830 * include/std/std_istream.h: Update comments.
1831 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
1832 comments about reasons for tests. Test sync() against gcount().
1833 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
1834 for effect on gcount().
1835 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
1836 for effect on gcount().
1838 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
1840 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
1843 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
1845 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
1846 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
1847 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
1848 (basic_streambuf::basic_streambuf()): Adjust.
1849 * include/std/std_fstream.h (_S_pback_size, _M_pback,
1850 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
1851 _M_pback_create(), _M_pback_destroy()): Moved here
1852 from basic_streambuf.
1853 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
1855 (basic_filebuf::_S_pback_size): Add declaration.
1856 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
1859 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
1861 Consistently use _M_in_beg instead of eback(), _M_in_cur
1862 instead of gptr(), and so on.
1863 * include/bits/fstream.tcc (pbackfail, imbue): Here.
1864 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
1865 * include/bits/streambuf.tcc (sbumpc, sputbackc,
1866 __copy_streambufs): Ditto.
1867 * include/std/std_streambuf.h (sgetc): Ditto.
1869 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
1871 * include/bits/sstream.tcc (pbackfail, overflow):
1874 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
1876 * include/std/std_streambuf.h (uflow()): It's used only by
1877 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
1878 therefore do not consider the _M_buf_unified == true case.
1880 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
1882 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
1884 * docs/html/ext/howto.html ('LWG Issues'):
1885 Add issues 19, 90, 171, 231, 271.
1887 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
1889 * include/bits/sstream.tcc (pbackfail): Remove redundant
1890 NULL pointer check from test involving _M_in_*.
1891 (overflow, seekoff, seekpos): Const qualify bool variables.
1892 * include/std/std_sstream.h (underflow): Remove redundant
1893 NULL pointer check from test involving _M_in_*.
1894 (_M_really_sync): Const qualify bool variables.
1895 * src/fstream.cc (_M_underflow_common): Remove redundant
1896 NULL pointer check from test involving _M_in_*, const qualify
1899 * include/std/std_streambuf.h (sgetc): Remove redundant
1902 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
1904 According to 5.9 para 2 (second bullet) for pointers p, q
1905 pointing to the same type, with p == 0 and q == 0, (p < q)
1907 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
1908 seekoff): Remove redundant NULL pointer checks from tests
1909 involving _M_out_* and _M_in_*, const qualify bool variables.
1910 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
1911 qualify bool variables.
1912 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
1913 Remove redundant NULL pointer checks from tests involving
1914 _M_out_* and _M_in_*, const qualify bool variables.
1915 * include/std/std_fstream.h (sync): Likewise.
1916 (_M_is_indeterminate): Const qualify bool variables.
1917 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
1918 NULL pointer checks from tests involving _M_out_* and _M_in_*,
1919 const qualify bool variables.
1920 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
1923 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
1925 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
1926 C99 FP macros, if actually captured.
1928 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
1929 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
1930 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
1931 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
1932 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
1934 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
1935 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
1936 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
1937 * include/c_std/std_cstdlib.h: Use new macros.
1938 * include/c_std/std_cstdio.h: Use new macros.
1939 * include/c_std/std_cwchar.h: Use new macros.
1941 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
1944 * include/bits/ostream.tcc: Catch all exceptions for formatted
1945 output, instead of std::exception and derivatives.
1946 * include/bits/istream.tcc: Same.
1947 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
1948 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
1949 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
1950 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
1951 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1952 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
1955 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
1957 * include/bits/c++config: Minor cosmetic tweaks.
1959 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
1961 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
1962 * include/Makefile.am (pch_input): Find in ${target_builddir}.
1963 (pch_output): Rename to...
1964 (pch_output_builddir): ..this. Find in ${target_builddir}.
1965 (pch_source): Tweak.
1966 (pch_build): Key off a built file.
1967 (pch_output rule): Rename to...
1968 (pch_input rule): ...this. Produce ${pch_output_builddir}
1969 instead of ${pch_output}.
1970 (install-pch rule): Install ${pch_output_builddir}.
1971 * include/Makefile.in: Regenerated.
1973 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
1975 * include/std/std_streambuf.h (setp): _M_out_lim, being
1976 the end limit of used put area, is set equal to _M_out_beg.
1978 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
1980 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
1981 * aclocal.m4: Regenerated.
1982 * configure.in: Remove old demangler bits.
1984 * configure: Regenerate.
1985 * config.h.in: Regenerate.
1986 * include/Makefile.am (allstamps): Now allstamped.
1987 (allcreated): Define this.
1988 (all-local): Use 'em.
1989 Conditionally define pch_build, pch_install based on
1991 (${pch_output}): New rule.
1992 (install-pch): New rule.
1993 (install-headers): New rule.
1994 (install-data-local): Install headers and conditionally pch.
1995 * include/Makefile.in: Regenerate.
1996 * testsuite_flags.in (--build-cxx): Use pch file.
1998 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
2000 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
2002 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
2003 Paolo Carlini <pcarlini at unitus dot it>
2006 * docs/html/27_io/howto.html
2007 ('The buffering is screwing up my program!'): Explain that
2008 opening counts as an I/O operation.
2010 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
2012 * testsuite/thread/pthread1.cc: Enable for darwin test.
2013 * testsuite/thread/pthread2.cc: Same.
2014 * testsuite/thread/pthread3.cc: Same.
2015 * testsuite/thread/pthread4.cc: Same.
2016 * testsuite/thread/pthread5.cc: Same.
2017 * testsuite/thread/pthread6.cc: Same.
2019 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
2022 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
2023 Populate it with multiple legal ways to obtain the C99 float
2024 transcendentals. Use them instead of direct global reference.
2025 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
2026 * docs/html/17_intro/porting.texi
2027 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2028 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2029 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
2030 * config/os/bsd/freebsd/os_defines.h
2031 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2032 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2033 * testsuite/26_numerics/c_math_dynamic.cc: New file.
2035 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
2036 Benjamin Kosnik <bkoz@redhat.com>
2038 * config/os/generic/ctype_inline.h: Fix.
2040 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
2042 * testsuite/testsuite_hooks.h
2043 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
2044 Change to try_named_locale.
2045 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
2047 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
2049 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
2050 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
2051 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
2052 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
2053 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
2054 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
2055 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
2056 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
2057 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
2058 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
2059 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
2060 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
2061 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
2062 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
2063 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
2064 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
2065 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
2066 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
2067 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
2068 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
2069 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
2070 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
2071 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
2072 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
2073 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
2074 * testsuite/22_locale/collate/compare/char/1.cc: Same.
2075 * testsuite/22_locale/collate/compare/char/2.cc: Same.
2076 * testsuite/22_locale/collate/compare/char/3.cc: Same.
2077 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
2078 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
2079 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
2080 * testsuite/22_locale/collate/hash/char/2.cc: Same.
2081 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
2082 * testsuite/22_locale/collate/transform/char/2.cc: Same.
2083 * testsuite/22_locale/collate/transform/char/3.cc: Same.
2084 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
2085 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
2086 * testsuite/22_locale/collate_byname/1.cc: Same.
2087 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2088 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2089 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
2090 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
2091 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
2092 * testsuite/22_locale/facet/2.cc: Same.
2093 * testsuite/22_locale/locale/cons/2.cc: Same.
2094 * testsuite/22_locale/locale/cons/4.cc: Same.
2095 * testsuite/22_locale/locale/cons/5.cc: Same.
2096 * testsuite/22_locale/locale/cons/7.cc: Same.
2097 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
2098 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
2099 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
2100 * testsuite/22_locale/messages/members/char/1.cc: Same.
2101 * testsuite/22_locale/messages/members/char/2.cc: Same.
2102 * testsuite/22_locale/messages/members/char/3.cc: Same.
2103 * testsuite/22_locale/messages_byname/1.cc: Same.
2104 * testsuite/22_locale/money_get/get/char/1.cc: Same.
2105 * testsuite/22_locale/money_get/get/char/2.cc: Same.
2106 * testsuite/22_locale/money_get/get/char/3.cc: Same.
2107 * testsuite/22_locale/money_get/get/char/4.cc: Same.
2108 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
2109 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
2110 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
2111 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
2112 * testsuite/22_locale/money_put/put/char/1.cc: Same.
2113 * testsuite/22_locale/money_put/put/char/2.cc: Same.
2114 * testsuite/22_locale/money_put/put/char/3.cc: Same.
2115 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
2116 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
2117 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
2118 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
2119 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
2120 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
2121 * testsuite/22_locale/num_get/get/char/1.cc: Same.
2122 * testsuite/22_locale/num_get/get/char/2.cc: Same.
2123 * testsuite/22_locale/num_get/get/char/3.cc: Same.
2124 * testsuite/22_locale/num_get/get/char/5.cc: Same.
2125 * testsuite/22_locale/num_get/get/char/6.cc: Same.
2126 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
2127 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
2128 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
2129 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
2130 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
2131 * testsuite/22_locale/num_put/put/char/1.cc: Same.
2132 * testsuite/22_locale/num_put/put/char/2.cc: Same.
2133 * testsuite/22_locale/num_put/put/char/3.cc: Same.
2134 * testsuite/22_locale/num_put/put/char/5.cc: Same.
2135 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
2136 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
2137 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
2138 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
2139 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
2140 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
2141 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
2142 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
2143 * testsuite/22_locale/numpunct_byname/1.cc: Same.
2144 * testsuite/22_locale/numpunct_byname/2.cc: Same.
2145 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
2146 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
2147 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
2148 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
2149 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
2150 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
2151 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
2152 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
2153 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
2154 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
2155 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
2156 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
2157 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
2158 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
2159 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
2160 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
2161 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
2162 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
2163 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
2164 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
2165 * testsuite/22_locale/time_put/put/char/1.cc: Same.
2166 * testsuite/22_locale/time_put/put/char/2.cc: Same.
2167 * testsuite/22_locale/time_put/put/char/3.cc: Same.
2168 * testsuite/22_locale/time_put/put/char/4.cc: Same.
2169 * testsuite/22_locale/time_put/put/char/5.cc: Same.
2170 * testsuite/22_locale/time_put/put/char/6.cc: Same.
2171 * testsuite/22_locale/time_put/put/char/7.cc: Same.
2172 * testsuite/22_locale/time_put/put/char/8.cc: Same.
2173 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
2174 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
2175 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
2176 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
2177 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
2178 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
2179 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
2180 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
2181 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
2182 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
2183 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
2184 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
2185 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
2187 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
2189 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
2190 solaris includes, not generic.
2192 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
2194 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
2196 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
2197 * include/bits/concept_check.h: Fix multi-line comment.
2198 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
2199 when target is *-*-freebsd*.
2201 2003-04-14 Nathan Myers <ncm@cantrip.org>
2202 Paolo Carlini <pcarlini@unitus.it>
2204 PR libstdc++/9701 (in_avail())
2205 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
2206 doesn't care if there is anything in some putback cell.
2207 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
2209 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
2210 unused string literals.
2212 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
2214 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
2215 _M_out_end, _M_set_indeterminate() does it.
2217 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2219 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
2221 2003-04-12 David Edelsohn <edelsohn@gnu.org>
2223 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
2224 Change basic_streambuf instantiation to "unsigned char".
2225 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2227 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
2229 Remove _M_buf_size_opt, use directly _M_buf_size instead.
2230 * include/bits/fstream.tcc
2231 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
2232 references to _M_buf_size_opt.
2233 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
2234 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
2235 __bufsize to __in_avail and __size_opt to __buf_size.
2236 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
2237 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
2238 * include/std/std_streambuf.h (~basic_streambuf(),
2239 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
2240 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
2241 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2242 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
2243 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
2244 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
2245 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
2246 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
2247 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
2248 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2249 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2250 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2251 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2253 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
2255 * include/ext/stdio_filebuf.h
2256 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
2257 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
2258 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
2259 since a stack-based buffer is used for small values of the size_t
2261 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
2262 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
2263 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
2265 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
2268 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
2269 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
2271 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
2273 * testsuite/22_locale/locale/cons/3.cc: Split.
2274 * testsuite/22_locale/locale/cons/7222-c.cc: New.
2275 * testsuite/22_locale/locale/cons/7222-env.cc: New.
2276 Check before trying to create a locale from the environment.
2277 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
2278 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2281 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
2283 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
2284 locale to construct this hybrid locale, not the global locale.
2286 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
2288 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
2289 instantiation for AIX.
2290 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2291 * testsuite/25_algorithms/min_max.cc: Same.
2293 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2295 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
2296 twice. Always set _M_cfile to 0 when stream was open.
2298 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
2300 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
2301 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
2302 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
2303 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
2304 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
2305 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
2306 ifstream_members.cc, instantiations.cc, ios.cc,
2307 ios_base_callbacks.cc, ios_base_members_static-1.tst,
2308 ios_base_members_static.cc, ios_base_storage.cc,
2309 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
2310 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
2311 iostream.cc, iostream_members.cc, istream.cc,
2312 istream_exception.cc, istream_extractor_char.cc,
2313 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
2314 istream_extractor_other-2.tst, istream_extractor_other.cc,
2315 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
2316 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
2317 istream_sentry.cc, istream_unformatted-1.tst,
2318 istream_unformatted-1.txt, istream_unformatted.cc,
2319 istringstream.cc, istringstream_members.cc,
2320 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
2321 ofstream_members.cc, ostream.cc, ostream_exception.cc,
2322 ostream_fail.cc, ostream_inserter_arith.cc,
2323 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
2324 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
2325 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
2326 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
2327 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
2328 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
2329 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
2330 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
2331 wide_stream_objects.cc, istream_extractor_arith/01.cc,
2332 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
2333 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
2334 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
2335 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
2336 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
2338 * 27_io/basic_filebuf/1.cc: New.
2339 * 27_io/basic_filebuf/2.cc: New.
2340 * 27_io/basic_filebuf/3.cc: New.
2341 * 27_io/basic_filebuf/4.cc: New.
2342 * 27_io/basic_filebuf/close/char/1.cc: New.
2343 * 27_io/basic_filebuf/close/char/2.cc: New.
2344 * 27_io/basic_filebuf/close/char/3.cc: New.
2345 * 27_io/basic_filebuf/close/char/4879.cc: New.
2346 * 27_io/basic_filebuf/close/char/9964.cc: New.
2347 * 27_io/basic_filebuf/imbue/char/1.cc: New.
2348 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
2349 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
2350 * 27_io/basic_filebuf/is_open/char/1.cc: New.
2351 * 27_io/basic_filebuf/open/char/1.cc: New.
2352 * 27_io/basic_filebuf/open/char/2.cc: New.
2353 * 27_io/basic_filebuf/open/char/3.cc: New.
2354 * 27_io/basic_filebuf/open/char/9507.cc: New.
2355 * 27_io/basic_filebuf/overflow/char/1.cc: New.
2356 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
2357 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
2358 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
2359 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
2360 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
2361 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
2362 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
2363 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
2364 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
2365 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
2366 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
2367 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
2368 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
2369 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
2370 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
2371 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
2372 * 27_io/basic_filebuf/snextc/char/1.cc: New.
2373 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
2374 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
2375 * 27_io/basic_filebuf/sputc/char/1.cc: New.
2376 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
2377 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
2378 * 27_io/basic_filebuf/sputn/char/1.cc: New.
2379 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
2380 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
2381 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
2382 * 27_io/basic_filebuf/sync/char/1057.cc: New.
2383 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
2384 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
2385 * 27_io/basic_fstream/1.cc: New.
2386 * 27_io/basic_fstream/2.cc: New.
2387 * 27_io/basic_fstream/3.cc: New.
2388 * 27_io/basic_fstream/4.cc: New.
2389 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
2390 * 27_io/basic_ifstream/1.cc: New.
2391 * 27_io/basic_ifstream/2.cc: New.
2392 * 27_io/basic_ifstream/3.cc: New.
2393 * 27_io/basic_ifstream/4.cc: New.
2394 * 27_io/basic_ifstream/cons/char/1.cc: New.
2395 * 27_io/basic_ifstream/open/char/1.cc: New.
2396 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
2397 * 27_io/basic_ios/1.cc: New.
2398 * 27_io/basic_ios/2.cc: New.
2399 * 27_io/basic_ios/3.cc: New.
2400 * 27_io/basic_ios/4.cc: New.
2401 * 27_io/basic_ios/clear/char/1.cc: New.
2402 * 27_io/basic_ios/cons/char/1.cc: New.
2403 * 27_io/basic_ios/cons/char/2.cc: New.
2404 * 27_io/basic_ios/cons/char/3.cc: New.
2405 * 27_io/basic_ios/copyfmt/char/1.cc: New.
2406 * 27_io/basic_ios/copyfmt/char/2.cc: New.
2407 * 27_io/basic_ios/exceptions/char/1.cc: New.
2408 * 27_io/basic_ios/locales/char/1.cc: New.
2409 * 27_io/basic_iostream/1.cc: New.
2410 * 27_io/basic_iostream/2.cc: New.
2411 * 27_io/basic_iostream/3.cc: New.
2412 * 27_io/basic_iostream/4.cc: New.
2413 * 27_io/basic_istream/1.cc: New.
2414 * 27_io/basic_istream/2.cc: New.
2415 * 27_io/basic_istream/3.cc: New.
2416 * 27_io/basic_istream/4.cc: New.
2417 * 27_io/basic_istream/exceptions/char/9561.cc: New.
2418 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
2419 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
2420 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
2421 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
2422 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
2423 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
2424 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
2425 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
2426 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
2427 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
2428 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
2429 * 27_io/basic_istream/extractors_character/char/1.cc: New.
2430 * 27_io/basic_istream/extractors_character/char/2.cc: New.
2431 * 27_io/basic_istream/extractors_character/char/3.cc: New.
2432 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
2433 * 27_io/basic_istream/extractors_other/char/1.cc: New.
2434 * 27_io/basic_istream/extractors_other/char/2.cc: New.
2435 * 27_io/basic_istream/extractors_other/char/3.cc: New.
2436 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
2437 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
2438 * 27_io/basic_istream/get/char/1.cc: New.
2439 * 27_io/basic_istream/get/char/2.cc: New.
2440 * 27_io/basic_istream/getline/char/1.cc: New.
2441 * 27_io/basic_istream/getline/char/2.cc: New.
2442 * 27_io/basic_istream/getline/char/3.cc: New.
2443 * 27_io/basic_istream/ignore/char/1.cc: New.
2444 * 27_io/basic_istream/ignore/char/6360.cc: New.
2445 * 27_io/basic_istream/ignore/char/7220.cc: New.
2446 * 27_io/basic_istream/peek/char/1.cc: New.
2447 * 27_io/basic_istream/peek/char/6414.cc: New.
2448 * 27_io/basic_istream/putback/char/1.cc: New.
2449 * 27_io/basic_istream/read/char/1.cc: New.
2450 * 27_io/basic_istream/read/char/2.cc: New.
2451 * 27_io/basic_istream/read/char/3.cc: New.
2452 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
2453 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
2454 * 27_io/basic_istream/readsome/char/8258.cc: New.
2455 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
2456 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
2457 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
2458 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
2459 * 27_io/basic_istream/seekg/char/fstream.cc: New.
2460 * 27_io/basic_istream/seekg/char/sstream.cc: New.
2461 * 27_io/basic_istream/sentry/char/1.cc: New.
2462 * 27_io/basic_istream/sentry/char/2.cc: New.
2463 * 27_io/basic_istream/sentry/char/3.cc: New.
2464 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
2465 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
2466 * 27_io/basic_istream/tellg/char/1.cc: New.
2467 * 27_io/basic_istream/tellg/char/8348.cc: New.
2468 * 27_io/basic_istream/tellg/char/fstream.cc: New.
2469 * 27_io/basic_istream/tellg/char/sstream.cc: New.
2470 * 27_io/basic_istream/ws/char/1.cc: New.
2471 * 27_io/basic_istringstream/1.cc: New.
2472 * 27_io/basic_istringstream/2.cc: New.
2473 * 27_io/basic_istringstream/3.cc: New.
2474 * 27_io/basic_istringstream/4.cc: New.
2475 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
2476 * 27_io/basic_istringstream/str/char/1.cc: New.
2477 * 27_io/basic_ofstream/1.cc: New.
2478 * 27_io/basic_ofstream/2.cc: New.
2479 * 27_io/basic_ofstream/3.cc: New.
2480 * 27_io/basic_ofstream/4.cc: New.
2481 * 27_io/basic_ofstream/cons/char/2.cc: New.
2482 * 27_io/basic_ofstream/open/char/1.cc: New.
2483 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
2484 * 27_io/basic_ostream/1.cc: New.
2485 * 27_io/basic_ostream/2.cc: New.
2486 * 27_io/basic_ostream/3.cc: New.
2487 * 27_io/basic_ostream/4.cc: New.
2488 * 27_io/basic_ostream/cons/char/9827.cc: New.
2489 * 27_io/basic_ostream/endl/char/1.cc: New.
2490 * 27_io/basic_ostream/ends/char/1.cc: New.
2491 * 27_io/basic_ostream/ends/char/2.cc: New.
2492 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
2493 * 27_io/basic_ostream/flush/char/1.cc: New.
2494 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
2495 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
2496 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
2497 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
2498 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
2499 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
2500 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
2501 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
2502 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
2503 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
2504 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
2505 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
2506 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
2507 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
2508 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
2509 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
2510 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
2511 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
2512 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
2513 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
2514 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
2515 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
2516 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
2517 * 27_io/basic_ostream/sentry/char/1.cc: New.
2518 * 27_io/basic_ostream/sentry/char/2.cc: New.
2519 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
2520 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
2521 * 27_io/basic_ostream/tellp/char/1.cc: New.
2522 * 27_io/basic_ostream/tellp/char/2.cc: New.
2523 * 27_io/basic_ostringstream/1.cc: New.
2524 * 27_io/basic_ostringstream/2.cc: New.
2525 * 27_io/basic_ostringstream/3.cc: New.
2526 * 27_io/basic_ostringstream/4.cc: New.
2527 * 27_io/basic_ostringstream/cons/char/3.cc: New.
2528 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
2529 * 27_io/basic_ostringstream/str/char/1.cc: New.
2530 * 27_io/basic_ostringstream/str/char/2.cc: New.
2531 * 27_io/basic_streambuf/1.cc: New.
2532 * 27_io/basic_streambuf/2.cc: New.
2533 * 27_io/basic_streambuf/3.cc: New.
2534 * 27_io/basic_streambuf/cons/char/1.cc: New.
2535 * 27_io/basic_streambuf/imbue/char/1.cc: New.
2536 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
2537 * 27_io/basic_streambuf/overflow/char/1.cc: New.
2538 * 27_io/basic_streambuf/overflow/char/2.cc: New.
2539 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
2540 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
2541 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
2542 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
2543 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
2544 * 27_io/basic_streambuf/sputn/char/1.cc: New.
2545 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
2546 * 27_io/basic_streambuf/sync/char/1057.cc: New.
2547 * 27_io/basic_stringbuf/1.cc: New.
2548 * 27_io/basic_stringbuf/2.cc: New.
2549 * 27_io/basic_stringbuf/3.cc: New.
2550 * 27_io/basic_stringbuf/4.cc: New.
2551 * 27_io/basic_stringbuf/5.cc: New.
2552 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
2553 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
2554 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
2555 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
2556 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
2557 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
2558 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
2559 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
2560 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
2561 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
2562 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
2563 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
2564 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
2565 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
2566 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
2567 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
2568 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
2569 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
2570 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
2571 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
2572 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
2573 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
2574 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
2575 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
2576 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
2577 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
2578 * 27_io/basic_stringbuf/str/char/1.cc: New.
2579 * 27_io/basic_stringbuf/str/char/2.cc: New.
2580 * 27_io/basic_stringbuf/str/char/3.cc: New.
2581 * 27_io/basic_stringbuf/str/char/3955.cc: New.
2582 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
2583 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
2584 * 27_io/basic_stringstream/1.cc: New.
2585 * 27_io/basic_stringstream/2.cc: New.
2586 * 27_io/basic_stringstream/3.cc: New.
2587 * 27_io/basic_stringstream/4.cc: New.
2588 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
2589 * 27_io/basic_stringstream/str/char/1.cc: New.
2590 * 27_io/basic_stringstream/str/char/2.cc: New.
2591 * 27_io/basic_stringstream/str/char/3.cc: New.
2592 * 27_io/basic_stringstream/str/char/4.cc: New.
2593 * 27_io/fpos/1.cc: New.
2594 * 27_io/fpos/2.cc: New.
2595 * 27_io/fpos/3.cc: New.
2596 * 27_io/ios_base/callbacks/1.cc: New.
2597 * 27_io/ios_base/state/1.cc: New.
2598 * 27_io/ios_base/storage/1.cc: New.
2599 * 27_io/ios_base/storage/2.cc: New.
2600 * 27_io/ios_base/storage/3.cc: New.
2601 * 27_io/ios_base/sync_with_stdio/1.cc: New.
2602 * 27_io/ios_base/sync_with_stdio/2.cc: New.
2603 * 27_io/manipulators/adjustfield/char/1.cc: New.
2604 * 27_io/manipulators/adjustfield/char/2.cc: New.
2605 * 27_io/manipulators/basefield/char/1.cc: New.
2606 * 27_io/manipulators/standard/char/1.cc: New.
2607 * 27_io/manipulators/standard/char/2.cc: New.
2608 * 27_io/objects/char/1.cc: New.
2609 * 27_io/objects/char/2.cc: New.
2610 * 27_io/objects/char/2523-1_xin.cc: New.
2611 * 27_io/objects/char/2523-1_xin.in: New.
2612 * 27_io/objects/char/2523-2_xin.cc: New.
2613 * 27_io/objects/char/2523-2_xin.in: New.
2614 * 27_io/objects/char/3045.cc: New.
2615 * 27_io/objects/char/3647.cc: New.
2616 * 27_io/objects/char/3_xin.cc: New.
2617 * 27_io/objects/char/3_xin.in: New.
2618 * 27_io/objects/char/4_xin.cc: New.
2619 * 27_io/objects/char/4_xin.in: New.
2620 * 27_io/objects/char/5268.cc: New.
2621 * 27_io/objects/char/5280_xin.cc: New.
2622 * 27_io/objects/char/5280_xin.in: New.
2623 * 27_io/objects/char/6548_xin.cc: New.
2624 * 27_io/objects/char/6548_xin.in: New.
2625 * 27_io/objects/char/6648-1_xin.cc: New.
2626 * 27_io/objects/char/6648-1_xin.in: New.
2627 * 27_io/objects/char/6648-2_xin.cc: New.
2628 * 27_io/objects/char/6648-2_xin.in: New.
2629 * 27_io/objects/char/7744_xin.cc: New.
2630 * 27_io/objects/char/7744_xin.in: New.
2631 * 27_io/objects/wchar_t/1.cc: New.
2632 * 27_io/types/1.cc: New.
2633 * 27_io/types/2.cc: New.
2634 * data/filebuf_members-1.tst: New.
2635 * data/filebuf_members-1.txt: New.
2636 * data/filebuf_virtuals-1.tst: New.
2637 * data/filebuf_virtuals-1.txt: New.
2638 * data/filebuf_virtuals-2.tst: New.
2639 * data/filebuf_virtuals-3.tst: New.
2640 * data/ifstream_members-1.tst: New.
2641 * data/ifstream_members-1.txt: New.
2642 * data/ios_base_members_static-1.tst: New.
2643 * data/istream_extractor_other-1.tst: New.
2644 * data/istream_extractor_other-1.txt: New.
2645 * data/istream_extractor_other-2.tst: New.
2646 * data/istream_seeks-1.tst: New.
2647 * data/istream_seeks-1.txt: New.
2648 * data/istream_seeks-2.tst: New.
2649 * data/istream_seeks-3.tst: New.
2650 * data/istream_unformatted-1.tst: New.
2651 * data/istream_unformatted-1.txt: New.
2652 * data/ofstream_members-1.tst: New.
2653 * data/ostream_inserter_char-1.tst: New.
2654 * data/ostream_inserter_char-1.txt: New.
2655 * data/ostream_inserter_other-1.tst: New.
2656 * data/ostream_inserter_other-2.tst: New.
2657 * data/ostream_seeks-1.tst: New.
2659 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
2661 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
2662 requirement that __mode must be strict input or output.
2664 * include/std/std_streambuf.h (basic_streambuf::setp): Set
2667 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
2668 output string shouldn't core.
2669 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
2671 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
2673 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
2676 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
2678 * testsuite/data: New directory.
2679 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
2680 to copy files from the testsuite data directory.
2681 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
2682 testfiles containing _xin, which now means this is an interactive
2683 test and should be run with the interactive dejagnu hooks.
2684 * testsuite/Makefile.am: Remove testsuite_* files.
2685 * testsuite/Makefile.in: Regenerate.
2687 2003-04-09 Zack Weinberg <zack@codesourcery.com>
2689 * docs/html/install.html: Document complete list of locales
2690 required by test suite. Document procedure for installing
2691 said locales under Debian. Solicit instructions for other
2694 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
2696 * include/bits/sstream.tcc (overflow): Make sure operands of min
2697 and max have the same type.
2699 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
2702 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
2705 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
2707 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
2708 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
2709 Don't set _M_out_end.
2710 (basic_filebuf::overflow): Replace _M_out_buf_size() with
2711 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
2712 * include/bits/sstream.tcc (basic_stringbuf::overflow):
2713 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
2714 * include/bits/streambuf.tcc (basic_streambuf::sputc):
2715 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
2716 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
2717 _M_out_end - _M_out_cur.
2718 (__copy_streambufs): Likewise.
2719 * include/std/std_fstream.h (_M_set_determinate): Set
2722 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
2724 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
2725 _M_convert_to_external, _M_really_overflow, seekoff): Fix
2726 test for synced buffer.
2727 * include/std/std_fstream.h (sync): Likewise.
2728 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
2729 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
2731 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
2733 * include/std/std_sstream.h (basic_istringstream): Adjust
2735 (basic_ostringstream): Same.
2736 (basic_stringstream): Same.
2737 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
2738 (basic_ofstream): Same.
2739 (basic_fstream): Same.
2740 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
2741 that does not call init.
2742 * include/std/std_istream.h (basic_istream): Same.
2743 (basic_iostream): Construct istream, ostream uninitialized, use
2744 init to initialize just once. Add protected ctor that does not
2747 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
2748 Nathan Myers <ncm@cantrip.org>
2751 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
2753 (basic_filebuf<>::showmanyc): Use the information provided
2754 by codecvt and __basic_file<>::showmanyc_helper to implement
2755 a non-trivial showmanyc.
2756 * config/io/basic_file_stdio.h
2757 (__basic_file<>::showmanyc_helper): New, declare.
2758 * config/io/basic_file_stdio.cc
2759 (__basic_file<>::showmanyc_helper): Define.
2760 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
2761 (__basic_file<char>::open): Don't call fcntl().
2762 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
2763 GLIBCPP_CHECK_POLL): New macros.
2764 * configure.in: Call here.
2765 * acconfig.h: Add #undefs for the corresponding symbols.
2766 * aclocal.m4: Regenerate.
2767 * configure: Regenerate.
2768 * config.h.in: Regenerate.
2770 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
2772 * config/linker-map.gnu: Remove string export restrictions.
2774 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
2776 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
2777 find_first_of, find_last_of and find_last_not_of tests.
2778 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
2779 tests here, new file.
2780 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
2781 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
2782 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
2783 wchar_t find_first_of tests here, new file.
2784 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
2786 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
2788 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
2789 wchar_t find_last_of tests here.
2790 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
2791 wchar_t find_last_not_of tests here.
2793 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
2795 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
2796 Correct return value.
2798 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
2801 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
2802 * include/std/std_complex.h (norm): Use faster,
2803 less accurate computation for builtin float types under --fast-math.
2805 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
2807 * testsuite/testsuite_hooks.h: Fix warning nits.
2809 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
2811 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
2812 Only .set mips2 for the o32 ABI.
2814 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
2816 * testsuite/21_strings/char_traits/requirements/char/1.cc:
2817 Test char not wchar_t.
2819 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
2821 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
2822 Correct size, taking into account sizeof(wchar_t).
2824 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
2826 Reshuffle 21_strings testsuite.
2827 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
2828 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
2829 element_access.cc, operations.cc, char_traits_requirements.cc,
2830 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
2831 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
2832 wchar_t tests as follows.
2833 * 21_strings/basic_string/append/char/1.cc: New.
2834 * 21_strings/basic_string/append/wchar_t/1.cc: New.
2835 * 21_strings/basic_string/assign/char/1.cc: New.
2836 * 21_strings/basic_string/assign/char/2.cc: New.
2837 * 21_strings/basic_string/assign/char/3.cc: New.
2838 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
2839 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
2840 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
2841 * 21_strings/basic_string/capacity/1.cc: New.
2842 * 21_strings/basic_string/capacity/char/1.cc: New.
2843 * 21_strings/basic_string/capacity/char/2.cc: New.
2844 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
2845 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
2846 * 21_strings/basic_string/compare/char/1.cc: New.
2847 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
2848 * 21_strings/basic_string/cons/char/1.cc: New.
2849 * 21_strings/basic_string/cons/char/2.cc: New.
2850 * 21_strings/basic_string/cons/char/3.cc: New.
2851 * 21_strings/basic_string/cons/char/4.cc: New.
2852 * 21_strings/basic_string/cons/char/5.cc: New.
2853 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
2854 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
2855 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
2856 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
2857 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
2858 * 21_strings/basic_string/element_access/char/1.cc: New.
2859 * 21_strings/basic_string/element_access/char/2.cc: New.
2860 * 21_strings/basic_string/element_access/char/3.cc: New.
2861 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
2862 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
2863 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
2864 * 21_strings/basic_string/find/char/1.cc: New.
2865 * 21_strings/basic_string/find/wchar_t/1.cc: New.
2866 * 21_strings/basic_string/insert/char/1.cc: New.
2867 * 21_strings/basic_string/insert/char/2.cc: New.
2868 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
2869 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
2870 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
2871 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
2872 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
2873 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
2874 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
2875 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
2876 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
2877 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
2878 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
2879 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
2880 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
2881 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
2882 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
2883 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
2884 * 21_strings/basic_string/operators/char/1.cc: New.
2885 * 21_strings/basic_string/operators/char/2.cc: New.
2886 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
2887 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
2888 * 21_strings/basic_string/replace/char/1.cc: New.
2889 * 21_strings/basic_string/replace/char/2.cc: New.
2890 * 21_strings/basic_string/replace/char/3.cc: New.
2891 * 21_strings/basic_string/replace/char/4.cc: New.
2892 * 21_strings/basic_string/replace/char/5.cc: New.
2893 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
2894 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
2895 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
2896 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
2897 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
2898 * 21_strings/basic_string/rfind/char/1.cc: New.
2899 * 21_strings/basic_string/rfind/char/2.cc: New.
2900 * 21_strings/basic_string/rfind/char/3.cc: New.
2901 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
2902 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
2903 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
2904 * 21_strings/basic_string/substr/char/1.cc: New.
2905 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
2906 * 21_strings/c_strings/char/1.cc: New.
2907 * 21_strings/c_strings/char/2.cc: New.
2908 * 21_strings/c_strings/wchar_t/1.cc: New.
2909 * 21_strings/c_strings/wchar_t/2.cc: New.
2910 * 21_strings/char_traits/requirements/char/1.cc: New.
2911 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
2912 * 21_strings/char_traits/typedefs/char/1.cc: New.
2914 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
2915 Petur Runolfsson <peturr02@ru.is>
2918 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
2919 basic_filebuf<wchar_t>::_M_underflow_common):
2920 if (gptr() < egptr()) return *gptr().
2921 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
2923 * testsuite/27_io/filebuf_members.cc (test_04): Minor
2924 changes: unlink fifo before making it, fix spelling error.
2926 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
2928 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
2929 * testsuite/Makefile.in: Regenerate.
2930 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
2933 2003-03-17 Petur Runolfsson <peturr02@ru.is>
2936 * include/bits/fstream.tcc (basic_filebuf::close):
2937 Always close file, even when write fails.
2938 * testsuite/27_io/filebuf_members.cc (test_07): New test.
2940 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
2942 * libsupc++/Makefile.am (C_COMPILE): Remove.
2943 (LTCOMPILE): Likewise.
2944 * libsupc++/Makefile.in: Regenerate.
2946 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
2948 * testsuite/23_containers/bitset_members.cc: Add test variable.
2949 * testsuite/23_containers/map_insert.cc: Same.
2950 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
2951 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
2952 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
2953 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
2954 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
2955 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
2956 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
2957 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
2958 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
2959 * testsuite/27_io/istream_exception.cc: Same.
2960 * testsuite/27_io/filebuf_virtuals.cc: Same.
2961 * testsuite/27_io/stringbuf_virtuals.cc: Same.
2962 * testsuite/27_io/ostream_inserter_arith.cc: Same.
2963 * testsuite/26_numerics/valarray_operators.cc: Same.
2964 * testsuite/26_numerics/slice.cc: Same.
2965 * testsuite/26_numerics/slice_array_assignment.cc: Same.
2966 * testsuite/24_iterators/istream_iterator.cc: Same.
2967 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
2969 2003-03-14 Petur Runolfsson <peturr02@ru.is>
2973 * config/locale/generic/ctype_members.cc,
2974 * config/locale/gnu/ctype_members.cc
2975 (ctype<wchar_t>::do_widen(char)): Cast argument to
2976 unsigned char before passing to btowc.
2977 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
2978 Convert characters with btowc instead of mbsrtowcs.
2979 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
2981 Convert characters with wctob instead of wcsrtombs.
2982 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
2983 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
2984 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
2986 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
2988 * include/stdc++.h: New.
2989 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
2990 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
2991 * include/Makefile.in: Regenerate.
2992 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
2993 (--cxxflags): Put -g -O2 here.
2994 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
2996 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
2998 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
2999 missing named locale.
3001 2003-03-14 Andreas Schwab <schwab@suse.de>
3003 * configure.in: Only append to makefiles that are newly created to
3004 avoid multiple multi-do/multi-clean rules.
3005 * configure: Rebuilt.
3007 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
3009 * docs/html/configopts.html, docs/html/documentation.html,
3010 docs/html/explanations.html, docs/html/install.html,
3011 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
3012 invalid XHTML and make page header style consistent.
3014 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
3016 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
3017 * docs/html/faq/index.txt: Regenerate.
3018 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
3020 2003-03-12 Andreas Schwab <schwab@suse.de>
3022 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
3023 glibcpp_toolexeclibdir.
3024 * aclocal.m4, configure: Rebuilt.
3026 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
3028 * docs/html/faq/index.html: Update text about location of headers.
3029 * docs/html/faq/index.txt: Regenerate.
3031 2003-03-11 Carlo Wood <carlo@alinoe.com>
3033 * include/bits/demangle.h: Prepend accessors of
3034 class qualifier with 'get_' in order to fix warnings
3035 when compiling with -Wshadow.
3037 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
3039 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
3041 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
3043 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
3044 report lack of setenv().
3046 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
3048 * config/io/basic_file_stdio.cc: include <unistd.h>.
3050 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
3051 Nathan Myers <ncm@cantrip.org>
3054 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
3055 seekoff, seekpos): Add a boolean parameter __stdio.
3056 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
3057 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
3058 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
3060 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
3061 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
3062 * include/std/std_fstream.h (sync): Likewise.
3063 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
3064 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
3065 libstdc++/8399 commit involving isatty(0).
3066 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
3067 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
3068 * configure.in: Remove call.
3069 * aclocal.m4: Regenerate.
3070 * config.h.in: Regenerate.
3071 * configure: Regenerate.
3072 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
3074 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
3077 * include/bits/fstream.tcc (overflow): don't write EOF to file.
3078 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
3080 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
3083 * include/bits/basic_ios.h (_M_setstate): New.
3084 * include/bits/ostream.tcc (operator<<): Use it.
3085 * include/bits/istream.tcc (operator>>): Use it.
3086 * include/std/std_ostream.h (operator<<): Make friends.
3087 * include/std/std_istream.h (operator>>): Make friends.
3088 * testsuite/27_io/ostream_exception.cc,
3089 testsuite/27_io/istream_exception.cc: New tests.
3091 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
3093 * include/bits/locale_facets.tcc: Fix typo.
3095 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
3097 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
3099 * config/locale/generic/c_locale.cc
3100 (locale::facet::_S_create_c_locale): Throw runtime exception when
3101 unsupported language is specified.
3102 * testsuite/testsuite_hooks.h
3103 (run_test_wrapped_generic_locale_exception_catcher): New function.
3104 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
3105 Suppress runtime exception thrown by generic implementation.
3106 (run_tests_wrapped_env): Likewise.
3107 (run_test_wrapped_generic_locale_exception_catcher): New function.
3108 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
3109 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
3110 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
3111 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
3112 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
3113 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
3114 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
3115 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
3116 * testsuite/22_locale/facet/2.cc: New test wrap.
3117 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
3118 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
3119 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
3120 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
3121 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
3122 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
3123 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
3124 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
3125 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
3126 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
3127 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
3128 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
3129 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
3130 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
3131 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
3132 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
3133 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
3134 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
3135 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
3136 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
3137 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
3138 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
3139 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
3140 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
3141 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
3142 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
3143 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
3144 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
3145 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
3146 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
3147 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
3148 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
3149 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
3150 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
3151 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
3152 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
3153 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
3154 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
3155 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
3156 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
3157 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
3158 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
3159 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
3160 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
3161 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
3162 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
3163 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
3164 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
3165 * testsuite/27_io/ios_members.cc: New test wrap.
3166 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
3168 * testsuite/27_io/streambuf_members.cc: New test wrap.
3169 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
3171 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
3172 Petur Runolfsson <peturr02@ru.is>
3175 * include/bits/streambuf.tcc (__copy_streambufs): Use
3176 sgetn-sputn only when sputn cannot fail, otherwise fall back
3177 to safe snextc-sputc.
3178 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
3180 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
3182 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
3183 locale cache for truename and falsename.
3185 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
3187 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
3188 _M_word_size initialization.
3190 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
3192 * include/bits/fstream.tcc (_M_convert_to_external):
3193 Set __elen to zero if codecvt::out eventually fails.
3195 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
3198 * include/bits/fstream.tcc (_M_really_overflow): Check
3199 for _M_convert_to_external possible failures.
3200 * include/std/std_fstream.h (sync): Check _M_really_overflow
3201 return value and return -1 in case of failure.
3202 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
3204 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
3207 * include/bits/istream.tcc (operator>>(_CharT*),
3208 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
3209 * testsuite/27_io/stringstream.cc (test02): Add.
3211 * include/bits/istream.tcc (operator>>(_CharT*)):
3212 Assign a char_type to *__s.
3214 2003-03-07 Petur Runolfsson <peturr02@ru.is>
3217 * include/bits/locale_facets.tcc
3218 (collate::do_compare, collate::do_transform):
3219 Handle nul characters in input.
3220 * testsuite/22_locale/collate/compare/char/3.cc: New test.
3221 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
3222 * testsuite/22_locale/collate/transform/char/3.cc: New test.
3223 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
3225 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
3227 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
3229 * testsuite/27_io/ostream_fail.cc: New test.
3231 2003-03-07 Matthias Klose <doko@debian.org>
3233 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
3234 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
3235 * Makefile.in: Regenerate.
3236 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
3238 AM_MAKEFLAGS: Pass gxx_include_dir.
3239 * libsupc++/Makefile.in: Regenerate.
3241 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
3243 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
3244 mask. Test setting small-numbered pword and iword slots. Test
3245 behavior at limit of numeric_limits::max. Check that values are
3246 still good after failures.
3248 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
3250 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
3251 (ios_base::ios_base): Set _M_word, _M_word_size.
3252 (ios_base::~ios_base): Remove redundant test.
3253 * testsuite/27_io/ios_base_storage.cc (test03): New.
3255 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
3257 * src/strstream.cc, include/bits/basic_string.tcc: Remove
3258 incorrect whitespace added in my previous change.
3260 2003-03-05 Carlo Wood <carlo@alinoe.com>
3262 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
3263 _S_initialized() in order to allow debugging libraries to detect
3264 when the std streams are initialized from an overloaded operator
3267 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
3269 * libsupc++/demangle.h: Move to..
3270 * include/bits/demangle.h: ...here.
3271 * src/demangle.cc: Adjust include.
3272 * include/Makefile.am (bits_headers): Add.
3273 * include/Makefile.in: Regenerate.
3275 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
3277 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
3279 * config/linker-map.gnu: Filter typeinfo and vtable info.
3281 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
3283 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
3284 new failure. Throw exception if badbit and exception mask when ix
3285 >= numeric_limits<int>::max().
3287 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
3289 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
3290 min and max have the same type.
3291 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
3293 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
3295 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
3296 * include/Makefile.in: Regenerate.
3298 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
3300 * testsuite/abi_check.cc (report_symbol_info): Add version info.
3302 * config/linker-map.gnu: Hide more stuff.
3303 * include/Makefile.am: Cleanups.
3304 * include/Makefile.in: Regenerate.
3306 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
3308 * config/locale/generic/messages_members.h (messages::messages):
3309 Remove name from unused parameter.
3311 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
3313 * src/Makefile.am (sources): Add demangle.cc.
3316 * src/Makefile.in: Regenerate.
3317 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
3318 * libsupc++/Makefile.in: Regenerate.
3320 * testsuite/testsuite_hooks.h
3321 (__gnu_cxx_test::verify_demangle): New.
3322 * testsuite/testsuite_hooks.cc: Define.
3324 2003-02-27 Carlo Wood <carlo@alinoe.com>
3326 * src/demangle.cc: New.
3327 * libsupc++/demangle.h: New.
3329 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
3330 Carlo Wood <carlo@alinoe.com>
3332 * testsuite/demangle/abi_examples/01.cc: New.
3333 * testsuite/demangle/abi_examples/02.cc: New.
3334 * testsuite/demangle/abi_examples/03.cc: New.
3335 * testsuite/demangle/abi_examples/04.cc: New.
3336 * testsuite/demangle/abi_examples/05.cc: New.
3337 * testsuite/demangle/abi_examples/06.cc: New.
3338 * testsuite/demangle/abi_examples/07.cc: New.
3339 * testsuite/demangle/abi_examples/08.cc: New.
3340 * testsuite/demangle/abi_examples/09.cc: New.
3341 * testsuite/demangle/abi_examples/10.cc: New.
3342 * testsuite/demangle/abi_examples/11.cc: New.
3343 * testsuite/demangle/abi_examples/12.cc: New.
3344 * testsuite/demangle/abi_examples/13.cc: New.
3345 * testsuite/demangle/abi_examples/14.cc: New.
3346 * testsuite/demangle/abi_examples/15.cc: New.
3347 * testsuite/demangle/abi_examples/16.cc: New.
3348 * testsuite/demangle/abi_examples/17.cc: New.
3349 * testsuite/demangle/abi_examples/18.cc: New.
3350 * testsuite/demangle/abi_examples/19.cc: New.
3351 * testsuite/demangle/abi_examples/20.cc: New.
3352 * testsuite/demangle/abi_examples/21.cc: New.
3353 * testsuite/demangle/abi_examples/22.cc: New.
3354 * testsuite/demangle/abi_examples/23.cc: New.
3355 * testsuite/demangle/abi_examples/24.cc: New.
3356 * testsuite/demangle/abi_examples/25.cc: New.
3357 * testsuite/demangle/abi_examples/26.cc: New.
3358 * testsuite/demangle/abi_text/01.cc: New.
3359 * testsuite/demangle/abi_text/02.cc: New.
3360 * testsuite/demangle/abi_text/03.cc: New.
3361 * testsuite/demangle/abi_text/04.cc: New.
3362 * testsuite/demangle/abi_text/05.cc: New.
3363 * testsuite/demangle/abi_text/06.cc: New.
3364 * testsuite/demangle/abi_text/07.cc: New.
3365 * testsuite/demangle/abi_text/08.cc: New.
3366 * testsuite/demangle/abi_text/09.cc: New.
3367 * testsuite/demangle/abi_text/10.cc: New.
3368 * testsuite/demangle/abi_text/11.cc: New.
3369 * testsuite/demangle/abi_text/12.cc: New.
3370 * testsuite/demangle/abi_text/13.cc: New.
3371 * testsuite/demangle/abi_text/14.cc: New.
3372 * testsuite/demangle/regression/3111-1.cc: New.
3373 * testsuite/demangle/regression/3111-2.cc: New.
3374 * testsuite/demangle/regression/7986-01.cc: New.
3375 * testsuite/demangle/regression/7986-02.cc: New.
3376 * testsuite/demangle/regression/7986-03.cc: New.
3377 * testsuite/demangle/regression/7986-04.cc: New.
3378 * testsuite/demangle/regression/7986-05.cc: New.
3379 * testsuite/demangle/regression/7986-06.cc: New.
3380 * testsuite/demangle/regression/7986-07.cc: New.
3381 * testsuite/demangle/regression/7986-08.cc: New.
3382 * testsuite/demangle/regression/7986-09.cc: New.
3383 * testsuite/demangle/regression/7986-10.cc: New.
3384 * testsuite/demangle/regression/7986-11.cc: New.
3385 * testsuite/demangle/regression/7986-12.cc: New.
3386 * testsuite/demangle/regression/7986.cc: New.
3387 * testsuite/demangle/regression/8897.cc: New.
3388 * testsuite/demangle/regression/cw-01.cc: New.
3389 * testsuite/demangle/regression/cw-02.cc: New.
3390 * testsuite/demangle/regression/cw-03.cc: New.
3391 * testsuite/demangle/regression/cw-04.cc: New.
3392 * testsuite/demangle/regression/cw-05.cc: New.
3393 * testsuite/demangle/regression/cw-06.cc: New.
3394 * testsuite/demangle/regression/cw-07.cc: New.
3395 * testsuite/demangle/regression/cw-08.cc: New.
3396 * testsuite/demangle/regression/cw-09.cc: New.
3397 * testsuite/demangle/regression/cw-10.cc: New.
3398 * testsuite/demangle/regression/cw-11.cc: New.
3399 * testsuite/demangle/regression/cw-12.cc: New.
3400 * testsuite/demangle/regression/cw-13.cc: New.
3401 * testsuite/demangle/regression/cw-14.cc: New.
3402 * testsuite/demangle/regression/old.cc: New.
3404 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
3406 * docs/doxygen/Intro.3: Update with new (proper) names.
3407 * docs/doxygen/TODO: Update.
3408 * docs/doxygen/run_doxygen: More comments, fix up man pages.
3409 Fake entries for standard typedefs.
3410 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
3411 * docs/html/documentation.html: Top-level man page is now called
3413 * include/std/std_limits.h: Doxygenate.
3415 2003-02-25 Scott Snyder <snyder@fnal.gov>
3418 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
3419 Correct documentation.
3420 * include/bits/stl_multimap.h (lower_bound, upper_bound,
3421 equal_range): Likewise.
3423 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
3427 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
3428 __bump is true (uflow), always increment the read pointer
3429 (_M_in_cur) before returning successfully.
3430 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
3432 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
3433 Nathan Myers <ncm@cantrip.org>
3435 PR libstdc++/9404, PR libstdc++/9701 (partial)
3436 (aka pptr == epptr implies overflow)
3437 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3438 Consistently, _M_out_end points to the end of the buffer just
3440 (overflow): Tweak to use _M_out_buf_size().
3441 (_M_convert_to_external): The role of the old _M_out_end is
3442 now played by _M_out_lim.
3443 (_M_really_overflow): Likewise.
3444 (seekoff): Likewise.
3445 (setbuf): _M_out_end points to the end of the external buffer.
3446 * include/bits/sstream.tcc (overflow): Rewrote, taking into
3447 account the resolution of DR 169 (TC).
3448 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
3449 (seekpos): Use _M_string.capacity(); tweak.
3450 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
3451 * include/std/std_fstream.h (sync): The role of the old
3452 _M_out_end is now played by _M_out_lim.
3453 (_M_set_indeterminate): Use _M_set_determinate.
3454 (_M_set_determinate): _M_out_end is now _M_out_lim.
3455 (_M_is_indeterminate): Likewise.
3456 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
3457 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
3458 which have the information readily available as _M_string.capacity();
3459 for ate and app modes, pass the string size to _M_really_sync.
3460 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
3461 point to the end of the buffer (i.e., epptr) and to the string end,
3463 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
3464 which points to the right limit of the used put area.
3465 (_M_out_cur_move): The role of the old _M_out_end is now played
3467 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
3468 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
3470 (basic_streambuf()): Initialize _M_out_lim too.
3471 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
3472 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
3473 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
3475 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
3477 * testsuite/27_io/ios_base_storage.cc (main): Call
3480 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
3482 * include/bits/locale_facets.tcc (_M_convert_float): Replace
3483 numpunct facet accesses with data from __locale_cache.
3485 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
3487 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
3488 * docs/html/faq/index.txt: Regenerate.
3490 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
3492 * config/linker-map.gnu: Also export locking symbols needed for the
3493 generic atomicity.h case.
3495 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
3497 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
3499 * configure: Rebuilt.
3501 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
3503 * include/bits/sstream.tcc (overflow): According to
3504 27.7.1.3, p5, actual output is performed by sputc(c).
3506 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
3509 * include/bits/stl_alloc.h: Remove all traces of assert().
3511 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
3513 * include/std/std_sstream.h (str()): the size of the
3514 current string may be different from the initial one
3515 whenever _M_out_end > _M_out_beg.
3516 * testsuite/27_io/stringbuf_members.cc (test07): Add.
3518 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
3521 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
3523 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
3525 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
3526 * testsuite/27_io/ios_members.cc (test03): New.
3528 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
3530 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
3531 (basic_ios::_M_cache_facets): Move into above.
3532 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
3534 (basic_ios::imbue): Force locale cache to be built.
3535 (basic_ios::_M_init): Create and initialize locale cache.
3536 * include/bits/ios_base.h (__locale_cache_base): Declare.
3537 (ios_base::_M_locale_cache): New.
3538 (ios_base::_M_cache): Define.
3539 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
3541 (__locale_cache_base,__locale_cache<_CharT>): New classes.
3542 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
3543 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
3544 cache literal string, grouping flag, thousands separator.
3545 (__locale_cache<_CharT>::__locale_cache): New.
3546 (__locale_cache<_CharT>::_M_init): New.
3547 * src/ios.cc: Clear _M_locale_cache in constructor.
3548 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
3551 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
3553 * src/locale-inst.cc: Do not include <cassert>.
3554 * src/locale.cc: Likewise.
3556 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
3559 * include/std/std_fstream.h: Declare underflow and uflow
3560 specializations, change generic definitions to do nothing.
3561 * src/fstream.cc: Add underflow and uflow specializations.
3563 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
3566 * include/bits/fstream.tcc (_M_convert_to_external):
3567 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
3568 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
3570 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
3572 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
3573 * include/bits/basic_ios.tcc: Guard use of extern template.
3574 * include/std/std_iomanip.h: Same.
3575 * include/bits/streambuf.tcc: Same.
3576 * include/bits/stl_alloc.h: Same.
3577 * include/bits/locale_facets.tcc: Same.
3578 * include/bits/ostream.tcc: Same.
3579 * include/bits/istream.tcc: Same.
3580 * include/bits/fstream.tcc: Same.
3581 * include/bits/basic_string.tcc: Same.
3583 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
3585 * include/bits/ostream.tcc (sentry::sentry): Improve
3586 performance-wise the fix for libstdc++/9563.
3588 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
3590 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
3591 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
3592 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
3593 when we don't have static mutex initialization.
3594 (__exchange_and_add): Use _Atomic_add_mutex_once.
3595 * src/misc-inst.cc: Definitions of all the above.
3597 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
3600 * include/bits/ostream.tcc (sentry::sentry): Check
3601 the state of the stream after the preparation.
3602 * testsuite/27_io/ostream_sentry.cc (test02): Add.
3604 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
3606 * include/Makefile.am (stamp-std-precompile): Add rule.
3607 * include/Makefile.in: Regenerated.
3609 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
3610 Benjamin Kosnik <benjamin@redhat.com>
3612 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
3613 Add indexes into this array.
3614 (__num_base::_S_atoms): To _S_atoms_in.
3615 (num_put::_M_insert): Rename to _M_pad.
3616 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
3617 (num_put::_M_widen_int): Rename to _M_group_int.
3618 (num_put::_M_widen_float): Rename to _M_group_float.
3619 * include/bits/locale_facets.tcc (__int_to_char): New inline
3620 function and adapter functions.
3621 (num_put::_M_group_int): Streamline.
3622 (num_put::_M_group_float): Streamline.
3623 (num_put::_M_convert_int): Remove unused parameter names. Choose
3624 large enough buffer for text. Use __int_to_char instead of
3625 __convert_from_v. Formatted text is now at the end of the buffer.
3626 (num_put::_M_convert_float): Preliminary fixups.
3627 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
3628 (__int_to_char<unsigned long long>): Same.
3629 (__int_to_char<char, unsigned long>): New.
3630 (__int_to_char<char, unsigned long long>): New.
3631 (__int_to_char<wchar_t, unsigned long>): New.
3632 (__int_to_char<wchar_t, unsigned long long>): New.
3634 2003-02-11 Scott Snyder <snyder@fnal.gov>
3637 * include/bits/fstream.tcc (seekoff): Avoid operator+
3640 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
3643 * include/ext/stdio_filebuf.h
3644 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
3645 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
3646 Change to take a __size parameter of type size_t, not
3647 of type (template parameter dependent) int_type.
3648 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
3649 size vars to size_t.
3650 * testsuite/ext/stdio_filebuf.cc: Add.
3652 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
3653 Petur Runolfsson <peturr02@ru.is>
3656 * include/bits/streambuf.tcc (__copy_streambufs):
3657 Don't conditionalize the copy to __testput.
3658 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
3660 2002-02-11 DJ Delorie <dj@redhat.com>
3662 * acinclude.m4: Check for native targets that can't link at
3663 this point in the build.
3664 * aclocal.m4: Regenerate.
3665 * configure: Regenerate.
3667 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3669 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
3671 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
3674 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
3676 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
3677 unsigned char platforms.
3679 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
3682 * include/std/std_istream.h
3683 (basic_istream::sentry::operator bool()): Make const.
3684 * include/std/std_ostream.h
3685 (basic_ostream::sentry::operator bool()): Likewise.
3686 * testsuite/27_io/istream_sentry.cc (test03): Add.
3687 * testsuite/27_io/ostream_sentry.cc: Add.
3689 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
3692 Implement resolution of DR 231 (Ready)
3693 * include/bits/locale_facets.h (__num_base::_S_format_float):
3694 Change declaration: return void, remove __prec parameter.
3695 * src/locale.cc (__num_base::_S_format_float): Implement
3696 resolution of DR 231.
3697 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
3698 Tweak uses. Check for negative precision.
3699 * testsuite/22_locale/num_put/put/char/6.cc: Add
3700 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
3702 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
3704 * config/io/basic_file_libio.h: Fixups.
3705 * config/io/c_io_libio.h: Same.
3706 * libio/Makefile.am: Same.
3707 * libio/Makefile.in: Regenerated.
3709 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
3711 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
3712 Explicitly use the "C" locale.
3713 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
3715 2003-02-06 Petur Runolfsson <peturr02@ru.is>
3719 PR libstdc++/9028 (partial)
3725 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
3726 codecvt<wchar_t, char, mbstate_t>::do_length,
3727 codecvt<wchar_t, char, mbstate_t>::do_max_length):
3729 * config/locale/generic/codecvt_members.cc: ...here.
3730 * config/locale/gnu/codecvt_members.cc: ...and here.
3732 * config/locale/generic/codecvt_members.cc,
3733 * config/locale/gnu/codecvt_members.cc
3734 (codecvt<wchar_t, char, mbstate_t>::do_encoding
3735 codecvt<wchar_t, char, mbstate_t>::do_in,
3736 codecvt<wchar_t, char, mbstate_t>::do_length,
3737 codecvt<wchar_t, char, mbstate_t>::do_max_length,
3738 codecvt<wchar_t, char, mbstate_t>::do_out):
3739 New implementation that handles stateless encodings,
3742 * config/locale/generic/codecvt_members.cc,
3743 * config/locale/gnu/codecvt_members.cc,
3744 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
3745 * include/bits/codecvt.h,
3747 (codecvt::length, codecvt::do_length):
3748 Change type of first argument of length and do_length from
3749 'const state_type&' to 'state_type&' according to DR 75.
3751 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
3752 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
3753 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
3754 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
3755 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
3756 Cleanup and check for correct return value from encoding
3758 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
3759 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
3760 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
3761 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
3762 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
3763 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
3764 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
3765 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
3766 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
3767 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
3768 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
3769 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
3770 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
3771 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
3772 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
3773 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
3774 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
3775 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
3776 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
3777 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
3778 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
3779 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
3780 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
3781 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
3782 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
3783 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
3784 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
3785 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
3786 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
3787 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
3788 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
3789 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
3790 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
3791 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
3792 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
3793 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
3794 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
3796 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
3798 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
3799 (money_put::do_put): Same.
3801 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
3803 * include/bits/ios_base.h (ios_base): Document reserved storage.
3805 * include/bits/locale_facets.h: (struct __pad): Comment on
3807 (__verify_grouping): Same.
3808 (__add_grouping): Same.
3809 * include/bits/locale_facets.tcc (__verify_grouping): Move
3810 comments to declaration.
3811 (__add_grouping): Same.
3813 * include/bits/locale_facets.tcc:
3814 (__write<_CharT, _OutIter>): New function.
3815 (__write<_CharT>): New function specialization.
3816 (num_put::_M_insert): Remove explicit loop over iterator. Use
3818 (num_put::_M_widen_float): Remove __basefield.
3819 (num_put::_M_widen_int): Move __basefield to within grouping block.
3821 * include/bits/streambuf_iterator.h: Include <streambuf>.
3822 (ostreambuf_iterator::_M_put): Add.
3824 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
3826 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
3828 2003-02-04 Nathan Myers <ncm@cantrip.org>
3830 * testsuite/25_algorithms/min_max.cc (test02): Add.
3832 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
3834 PR libstdc++/9439, PR libstdc++/9425
3835 * config/io/basic_file_stdio.cc
3836 (__basic_file<char>::seekoff, seekpos): Return -1L if
3838 * include/bits/fstream.tcc (basic_filebuf::seekoff):
3839 Check _M_file.seekoff return value; always return
3840 pos_type(off_type(-1)) in case of failure.
3841 (basic_filebuf::pbackfail): Check this->seekoff return
3842 value and return traits_type::eof() in case of failure.
3843 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
3845 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
3847 * include/std/std_ostream.h (ostream::_M_write): Declare.
3848 * ostream.tcc (ostream::_M_write): Define.
3849 (basic_ostream::write): Use it.
3850 (operator<<(basic_ostream, _CharT)): Ditto.
3851 (operator<<(basic_ostream, char)): Ditto.
3852 (operator<<(basic_ostream, _CharT*)): Ditto.
3853 (operator<<(basic_ostream, char*)): Ditto.
3854 (operator<<(basic_ostream, basic_string)): Ditto.
3856 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
3858 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
3860 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3862 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
3863 add HTML comment about updating links if numbering changes.
3865 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
3868 * include/bits/streambuf.tcc (sputbackc): Access
3869 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
3870 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
3872 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
3875 * include/bits/fstream.tcc (open): If the 'ate' repositioning
3876 operation fails, calls close _and_ returns a null pointer
3877 to indicate failure (27.8.1.3,4).
3878 * testsuite/27_io/filebuf_members.cc (test_06): Add.
3880 2003-02-04 Petur Runolfsson <peturr02@ru.is>
3882 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
3884 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3886 * docs/html/27_io/howto.html: New section on stdio_filebuf.
3887 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
3888 * docs/html/documentation.html: Regenerate.
3890 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
3892 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
3893 * docs/html/17_intro/porting.html: Regenerate.
3895 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3896 Phil Edwards <pme@gcc.gnu.org>
3898 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
3899 numeric_limits for bits-per-word values.
3900 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
3901 Use __builtin_popcountl instead.
3902 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
3903 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
3904 Use __builtin_ctzl instead.
3905 (_S_bit_count, _S_first_one): Remove.
3906 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
3907 * src/Makefile.am (sources): Remove bitset.cc.
3908 * src/bitset.cc: Delete file.
3909 * src/Makefile.in: Regenerate.
3911 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
3913 PR libstdc++/9527, PR libstdc++/8713
3914 * docs/html/install.html: Mention glibc version requirement.
3915 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
3916 with 3.2.1+ (formatting bugfixes).
3917 * docs/html/faq/index.txt: Regenerate.
3919 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3922 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
3925 * include/bits/valarray_before.h (__not_equal_to): Use != instead
3928 * testsuite/26_numerics/valarray_operators.cc: New test.
3930 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
3932 * docs/html/faq/index.html: Correct link to libg++ information.
3933 * docs/html/faq/index.txt: Regenerated.
3935 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
3936 Benjamin Kosnik <bkoz@redhat.com>
3938 Const correctness issue:
3939 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
3940 * include/bits/locale_classes.h
3941 (locale::_Impl::_M_facets): Change type to const facet**.
3942 (locale::_Impl::_M_install_facet): Change declaration to
3944 (locale::facet::_M_references): Make mutable.
3945 (locale::facet::_M_add_reference): Declare const.
3946 (locale::facet::_M_remove_reference): Likewise.
3947 * include/bits/locale_facets.tcc
3948 (use_facet(const locale&)): Tweak for const facet** _M_facets.
3949 (has_facet(const locale&)): Likewise.
3951 (locale::facet::_M_add_reference): Adjust definition.
3952 (locale::facet::_M_remove_reference): Likewise.
3954 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
3955 const facet** _M_facets.
3956 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
3957 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
3958 (locale::_Impl::_M_install_facet): Adjust definition to take
3959 const facet* and for const facet** _M_facets.
3960 * testsuite/22_locale/locale/cons/8.cc: Add.
3962 2003-01-29 Mark Mitchell <mark@codesourcery.com>
3964 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
3965 Use __FLT_HAS_INIFINITY__ to initialize.
3966 (numeric_limits<float>::has_quiet_NaN): Likewise.
3967 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
3969 (numeric_limits<double>::has_quiet_NaN): Likewise.
3970 (numeric_limits<long double>::has_infinity): Use
3971 __LDBL_HAS_INIFINITY__ to initialize.
3972 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
3974 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
3977 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
3978 with bases which are very ambiguous.
3980 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
3982 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
3983 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
3984 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
3985 * src/Makefile.in: Regenerate.
3986 * libsupc++/Makefile.in: Regenerate.
3988 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
3990 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
3991 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
3992 version_specific_libs is enabled.
3993 * aclocal.m4, configure: Rebuilt.
3995 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
3997 * include/bits/valarray_meta.h: Remove, split into ...
3998 * include/bits/valarray_before.h: ... this, and ...
3999 * include/bits/valarray_after.h: ... this.
4000 * include/std/std_valarray.h: Adjust.
4001 * include/Makefile.am (bits_headers): Adjust.
4002 * include/Makefile.in: Regenerate.
4004 2003-01-24 Andreas Schwab <schwab@suse.de>
4006 * config/linker-map.gnu: Fix for size_t variance.
4008 2003-01-23 Petur Runolfsson <peturr02@ru.is>
4011 * include/std/std_streambuf.h
4012 (basic_streambuf::basic_streambuf,
4013 basic_streambuf::~basic_streambuf,
4014 basic_streambuf::getloc, basic_streambuf::imbue):
4015 Remove _M_buf_locale_init
4016 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
4017 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
4018 * testsuite/27_io/streambuf_members.cc (test08): Add.
4019 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
4021 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
4023 Revert include ordering.
4024 * config/locale/generic/c_locale.h: Add include guards.
4025 * config/locale/gnu/c_locale.h: Same.
4026 * include/bits/locale_classes.h: Remove cctype include.
4027 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
4028 * include/std/std_fstream.h: Remove streambuf include.
4029 * include/std/std_sstream.h: Remove streambuf include.
4031 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
4033 * configure.in (libtool_VERSION): To 6:0:0.
4034 * configure: Regenerated.
4035 * config/linker-map.gnu: Clean.
4037 * src/misc-inst.cc: Remove instantiations.
4039 * include/bits/stl_alloc.h (__malloc_alloc_template):
4041 (__default_alloc_template): To __pool_alloc.
4042 * src/stl-inst.cc: Same.
4043 * include/backward/alloc.h: Update.
4044 * testsuite/ext/allocators.cc: Update.
4046 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
4047 really try to remove these if possible.
4048 * src/locale.cc (std): Same.
4050 * testsuite/abi_check.cc (check_version): Add.
4052 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
4053 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
4054 Mark Mitchell <mark@codesourcery.com>
4057 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
4058 (basic_filebuf::underflow): Declare.
4061 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
4063 * include/bits/locale_facets.h: Move non-facet classes requiring
4065 * include/bits/locale_classes.h: New.
4066 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
4067 * include/bits/Makefile.in: Regenerate.
4069 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
4070 * config/locale/gnu/c_locale.h: ...here.
4071 * config/locale/generic/c_locale.h: Same.
4073 * include/bits/locale_facets.tcc: Move declarations to...
4074 * include/bits/locale_facets.h: ...here.
4075 * include/bits/basic_ios.h: Tweak includes accordingly.
4076 * include/std/std_sstream.h: Add streambuf include.
4077 * include/std/std_fstream.h: Ditto.
4078 * include/std/std_locale.h: Add locale_classes.h include.
4079 * include/std/std_iosfwd.h: Tweak.
4080 * src/concept-inst.cc: Add iterator include.
4082 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
4083 bits as unexported in the future.
4085 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
4087 Reshuffle 22_locale testsuite.
4088 * 22_locale/(codecvt.cc money_get.cc
4089 codecvt_members_char_char.cc money_get_members_char.cc
4090 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
4091 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
4092 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
4093 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
4094 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
4095 money_put_members_char.cc ctor_copy_dtor.cc
4096 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
4097 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
4098 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
4099 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
4100 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
4101 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
4102 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
4103 operators.cc ctype_widen_char.cc static_members.cc
4104 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
4105 global_templates.cc time_get_members_wchar_t.cc, members.cc,
4106 time_put.cc, messages_byname.cc, time_put_members_char.cc,
4107 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
4108 Split up into individual test cases...
4109 * 22_locale/codecvt/1.cc: New.
4110 * 22_locale/codecvt/2.cc: New.
4111 * 22_locale/codecvt/always_noconv/char/1.cc: New.
4112 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
4113 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
4114 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
4115 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
4116 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
4117 * 22_locale/codecvt/encoding/char/1.cc: New.
4118 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
4119 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
4120 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
4121 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
4122 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
4123 * 22_locale/codecvt/in/char/1.cc: New.
4124 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
4125 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
4126 * 22_locale/codecvt/in/wchar_t/1.cc: New.
4127 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
4128 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
4129 * 22_locale/codecvt/length/char/1.cc: New.
4130 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
4131 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
4132 * 22_locale/codecvt/length/wchar_t/1.cc: New.
4133 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
4134 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
4135 * 22_locale/codecvt/max_length/char/1.cc: New.
4136 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
4137 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
4138 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
4139 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
4140 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
4141 * 22_locale/codecvt/out/char/1.cc: New.
4142 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
4143 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
4144 * 22_locale/codecvt/out/wchar_t/1.cc: New.
4145 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
4146 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
4147 * 22_locale/codecvt/unicode/char.cc: New.
4148 * 22_locale/codecvt/unicode/wchar_t.cc: New.
4149 * 22_locale/codecvt/unshift/char/1.cc: New.
4150 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
4151 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
4152 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
4153 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
4154 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
4155 * 22_locale/collate/1.cc: New.
4156 * 22_locale/collate/2.cc: New.
4157 * 22_locale/collate/compare/char/1.cc: New.
4158 * 22_locale/collate/compare/char/2.cc: New.
4159 * 22_locale/collate/compare/char/wrapped_env.cc: New.
4160 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
4161 * 22_locale/collate/compare/wchar_t/1.cc: New.
4162 * 22_locale/collate/compare/wchar_t/2.cc: New.
4163 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
4164 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
4165 * 22_locale/collate/hash/char/1.cc: New.
4166 * 22_locale/collate/hash/char/2.cc: New.
4167 * 22_locale/collate/hash/char/wrapped_env.cc: New.
4168 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
4169 * 22_locale/collate/hash/wchar_t/1.cc: New.
4170 * 22_locale/collate/hash/wchar_t/2.cc: New.
4171 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
4172 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
4173 * 22_locale/collate/transform/char/2.cc: New.
4174 * 22_locale/collate/transform/char/wrapped_env.cc: New.
4175 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
4176 * 22_locale/collate/transform/wchar_t/2.cc: New.
4177 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
4178 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
4179 * 22_locale/collate_byname/1.cc: New.
4180 * 22_locale/ctype/1.cc: New.
4181 * 22_locale/ctype/2.cc: New.
4182 * 22_locale/ctype/cons/char/1.cc: New.
4183 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
4184 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
4185 * 22_locale/ctype/is/char/1.cc: New.
4186 * 22_locale/ctype/is/char/2.cc: New.
4187 * 22_locale/ctype/is/char/3.cc: New.
4188 * 22_locale/ctype/is/char/wrapped_env.cc: New.
4189 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
4190 * 22_locale/ctype/is/wchar_t/1.cc: New.
4191 * 22_locale/ctype/is/wchar_t/2.cc: New.
4192 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
4193 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
4194 * 22_locale/ctype/narrow/char/1.cc: New.
4195 * 22_locale/ctype/narrow/char/2.cc: New.
4196 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
4197 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
4198 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
4199 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
4200 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
4201 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
4202 * 22_locale/ctype/scan/char/1.cc: New.
4203 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
4204 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
4205 * 22_locale/ctype/scan/wchar_t/1.cc: New.
4206 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
4207 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
4208 * 22_locale/ctype/to/char/1.cc: New.
4209 * 22_locale/ctype/to/char/wrapped_env.cc: New.
4210 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
4211 * 22_locale/ctype/to/wchar_t/1.cc: New.
4212 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
4213 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
4214 * 22_locale/ctype/widen/char/1.cc: New.
4215 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
4216 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
4217 * 22_locale/ctype/widen/wchar_t/1.cc: New.
4218 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
4219 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
4220 * 22_locale/facet/1.cc: New.
4221 * 22_locale/facet/2.cc: New.
4222 * 22_locale/global_templates/1.cc: New.
4223 * 22_locale/locale/cons/1.cc: New.
4224 * 22_locale/locale/cons/2.cc: New.
4225 * 22_locale/locale/cons/3.cc: New.
4226 * 22_locale/locale/cons/4.cc: New.
4227 * 22_locale/locale/cons/5.cc: New.
4228 * 22_locale/locale/cons/6.cc: New.
4229 * 22_locale/locale/cons/7.cc: New.
4230 * 22_locale/locale/global_locale_objects/1.cc: New.
4231 * 22_locale/locale/global_locale_objects/2.cc: New.
4232 * 22_locale/locale/global_locale_objects/3.cc: New.
4233 * 22_locale/locale/operations/1.cc: New.
4234 * 22_locale/locale/operations/2.cc: New.
4235 * 22_locale/messages/1.cc: New.
4236 * 22_locale/messages/2.cc: New.
4237 * 22_locale/messages/members/char/1.cc: New.
4238 * 22_locale/messages/members/char/2.cc: New.
4239 * 22_locale/messages/members/char/3.cc: New.
4240 * 22_locale/messages/members/char/wrapped_env.cc: New.
4241 * 22_locale/messages/members/char/wrapped_locale.cc: New.
4242 * 22_locale/messages_byname/1.cc: New.
4243 * 22_locale/money_get/1.cc: New.
4244 * 22_locale/money_get/2.cc: New.
4245 * 22_locale/money_get/get/char/1.cc: New.
4246 * 22_locale/money_get/get/char/2.cc: New.
4247 * 22_locale/money_get/get/char/3.cc: New.
4248 * 22_locale/money_get/get/char/4.cc: New.
4249 * 22_locale/money_get/get/char/5.cc: New.
4250 * 22_locale/money_get/get/char/6.cc: New.
4251 * 22_locale/money_get/get/char/7.cc: New.
4252 * 22_locale/money_get/get/char/8.cc: New.
4253 * 22_locale/money_get/get/char/wrapped_env.cc: New.
4254 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
4255 * 22_locale/money_get/get/wchar_t/1.cc: New.
4256 * 22_locale/money_get/get/wchar_t/2.cc: New.
4257 * 22_locale/money_get/get/wchar_t/3.cc: New.
4258 * 22_locale/money_get/get/wchar_t/4.cc: New.
4259 * 22_locale/money_get/get/wchar_t/5.cc: New.
4260 * 22_locale/money_get/get/wchar_t/6.cc: New.
4261 * 22_locale/money_get/get/wchar_t/7.cc: New.
4262 * 22_locale/money_get/get/wchar_t/8.cc: New.
4263 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
4264 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
4265 * 22_locale/money_put/1.cc: New.
4266 * 22_locale/money_put/2.cc: New.
4267 * 22_locale/money_put/put/char/1.cc: New.
4268 * 22_locale/money_put/put/char/2.cc: New.
4269 * 22_locale/money_put/put/char/3.cc: New.
4270 * 22_locale/money_put/put/char/4.cc: New.
4271 * 22_locale/money_put/put/char/5.cc: New.
4272 * 22_locale/money_put/put/char/6.cc: New.
4273 * 22_locale/money_put/put/char/wrapped_env.cc: New.
4274 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
4275 * 22_locale/money_put/put/wchar_t/1.cc: New.
4276 * 22_locale/money_put/put/wchar_t/2.cc: New.
4277 * 22_locale/money_put/put/wchar_t/3.cc: New.
4278 * 22_locale/money_put/put/wchar_t/4.cc: New.
4279 * 22_locale/money_put/put/wchar_t/5.cc: New.
4280 * 22_locale/money_put/put/wchar_t/6.cc: New.
4281 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
4282 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
4283 * 22_locale/moneypunct/1.cc: New.
4284 * 22_locale/moneypunct/2.cc: New.
4285 * 22_locale/moneypunct/3.cc: New.
4286 * 22_locale/moneypunct/members/char/1.cc: New.
4287 * 22_locale/moneypunct/members/char/2.cc: New.
4288 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
4289 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
4290 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
4291 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
4292 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
4293 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
4294 * 22_locale/moneypunct_byname/1.cc: New.
4295 * 22_locale/num_get/1.cc: New.
4296 * 22_locale/num_get/2.cc: New.
4297 * 22_locale/num_get/get/char/1.cc: New.
4298 * 22_locale/num_get/get/char/2.cc: New.
4299 * 22_locale/num_get/get/char/3.cc: New.
4300 * 22_locale/num_get/get/char/4.cc: New.
4301 * 22_locale/num_get/get/char/5.cc: New.
4302 * 22_locale/num_get/get/char/6.cc: New.
4303 * 22_locale/num_get/get/char/wrapped_env.cc: New.
4304 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
4305 * 22_locale/num_get/get/wchar_t/1.cc: New.
4306 * 22_locale/num_get/get/wchar_t/2.cc: New.
4307 * 22_locale/num_get/get/wchar_t/3.cc: New.
4308 * 22_locale/num_get/get/wchar_t/4.cc: New.
4309 * 22_locale/num_get/get/wchar_t/5.cc: New.
4310 * 22_locale/num_get/get/wchar_t/6.cc: New.
4311 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
4312 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
4313 * 22_locale/num_put/1.cc: New.
4314 * 22_locale/num_put/2.cc: New.
4315 * 22_locale/num_put/put/char/1.cc: New.
4316 * 22_locale/num_put/put/char/2.cc: New.
4317 * 22_locale/num_put/put/char/3.cc: New.
4318 * 22_locale/num_put/put/char/4.cc: New.
4319 * 22_locale/num_put/put/char/5.cc: New.
4320 * 22_locale/num_put/put/char/wrapped_env.cc: New.
4321 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
4322 * 22_locale/num_put/put/wchar_t/1.cc: New.
4323 * 22_locale/num_put/put/wchar_t/2.cc: New.
4324 * 22_locale/num_put/put/wchar_t/3.cc: New.
4325 * 22_locale/num_put/put/wchar_t/4.cc: New.
4326 * 22_locale/num_put/put/wchar_t/5.cc: New.
4327 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
4328 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
4329 * 22_locale/numpunct/1.cc: New.
4330 * 22_locale/numpunct/2.cc: New.
4331 * 22_locale/numpunct/members/char/1.cc: New.
4332 * 22_locale/numpunct/members/char/2.cc: New.
4333 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
4334 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
4335 * 22_locale/numpunct/members/wchar_t/1.cc: New.
4336 * 22_locale/numpunct/members/wchar_t/2.cc: New.
4337 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
4338 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
4339 * 22_locale/numpunct_byname/1.cc: New.
4340 * 22_locale/numpunct_byname/2.cc: New.
4341 * 22_locale/time_get/1.cc: New.
4342 * 22_locale/time_get/2.cc: New.
4343 * 22_locale/time_get/date_order/char/1.cc: New.
4344 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
4345 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
4346 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
4347 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
4348 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
4349 * 22_locale/time_get/get_date/char/1.cc: New.
4350 * 22_locale/time_get/get_date/char/2.cc: New.
4351 * 22_locale/time_get/get_date/char/3.cc: New.
4352 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
4353 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
4354 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
4355 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
4356 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
4357 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
4358 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
4359 * 22_locale/time_get/get_monthname/char/1.cc: New.
4360 * 22_locale/time_get/get_monthname/char/2.cc: New.
4361 * 22_locale/time_get/get_monthname/char/3.cc: New.
4362 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
4363 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
4364 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
4365 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
4366 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
4367 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
4368 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
4369 * 22_locale/time_get/get_time/char/1.cc: New.
4370 * 22_locale/time_get/get_time/char/2.cc: New.
4371 * 22_locale/time_get/get_time/char/3.cc: New.
4372 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
4373 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
4374 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
4375 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
4376 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
4377 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
4378 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
4379 * 22_locale/time_get/get_weekday/char/1.cc: New.
4380 * 22_locale/time_get/get_weekday/char/2.cc: New.
4381 * 22_locale/time_get/get_weekday/char/3.cc: New.
4382 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
4383 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
4384 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
4385 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
4386 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
4387 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
4388 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
4389 * 22_locale/time_get/get_year/char/1.cc: New.
4390 * 22_locale/time_get/get_year/char/3.cc: New.
4391 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
4392 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
4393 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
4394 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
4395 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
4396 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
4397 * 22_locale/time_put/1.cc: New.
4398 * 22_locale/time_put/2.cc: New.
4399 * 22_locale/time_put/put/char/1.cc: New.
4400 * 22_locale/time_put/put/char/10.cc: New.
4401 * 22_locale/time_put/put/char/2.cc: New.
4402 * 22_locale/time_put/put/char/3.cc: New.
4403 * 22_locale/time_put/put/char/4.cc: New.
4404 * 22_locale/time_put/put/char/5.cc: New.
4405 * 22_locale/time_put/put/char/6.cc: New.
4406 * 22_locale/time_put/put/char/7.cc: New.
4407 * 22_locale/time_put/put/char/8.cc: New.
4408 * 22_locale/time_put/put/char/9.cc: New.
4409 * 22_locale/time_put/put/char/wrapped_env.cc: New.
4410 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
4411 * 22_locale/time_put/put/wchar_t/1.cc: New.
4412 * 22_locale/time_put/put/wchar_t/10.cc: New.
4413 * 22_locale/time_put/put/wchar_t/2.cc: New.
4414 * 22_locale/time_put/put/wchar_t/3.cc: New.
4415 * 22_locale/time_put/put/wchar_t/4.cc: New.
4416 * 22_locale/time_put/put/wchar_t/5.cc: New.
4417 * 22_locale/time_put/put/wchar_t/6.cc: New.
4418 * 22_locale/time_put/put/wchar_t/7.cc: New.
4419 * 22_locale/time_put/put/wchar_t/8.cc: New.
4420 * 22_locale/time_put/put/wchar_t/9.cc: New.
4421 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
4422 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
4424 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
4426 * config/locale/generic/messages_members.h
4427 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
4428 unqualified members of base clasess.
4430 2003-01-16 Mark Mitchell <mark@codesourcery.com>
4431 Jeffrey Oldham <oldham@codesourcery.com>
4433 * config/locale/gnu/messages_members.h: Use this-> to refer to
4434 unqualified members of base clasess.
4435 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
4436 * include/bits/codecvt.h: Likewise.
4437 * include/bits/deque.tcc: Likewise.
4438 * include/bits/fstream.tcc: Likewise.
4439 * include/bits/istream.tcc: Likewise.
4440 * include/bits/list.tcc: Likewise.
4441 * include/bits/locale_facets.h: Likewise.
4442 * include/bits/ostream.tcc: Likewise.
4443 * include/bits/sstream.tcc: Likewise.
4444 * include/bits/stl_bvector.h: Likewise.
4445 * include/bits/stl_deque.h: Likewise.
4446 * include/bits/stl_list.h: Likewise.
4447 * include/bits/stl_tree.h: Likewise.
4448 * include/bits/stl_vector.h: Likewise.
4449 * include/bits/vector.tcc: Likewise.
4450 * include/ext/ropeimpl.h: Likewise.
4451 * include/ext/stdio_filebuf.h: Likewise.
4452 * include/ext/stl_rope.h: Likewise.
4453 * include/std/std_fstream.h: Likewise.
4454 * include/std/std_sstream.h: Likewise.
4456 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
4458 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
4460 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
4462 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
4463 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
4464 * aclocal.m4: Regenerate.
4465 * configure: Regenerate.
4466 * testsuite/Makefile.am (all-local): Add conditional rule to
4467 generate testsuite_wchar_t.
4468 * testsuite/Makefile.in: Regenerate.
4469 * testsuite/lib/libstdc++-v3-dg.exp
4470 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
4471 testsuite_wchar_t is not present in the build directory.
4472 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
4473 Remove setulimit bits.
4474 * testsuite/26_numerics/complex_value.cc: Set to noopts.
4475 * testsuite/Makefile.am (CLEANFILES): Add.
4476 * testsuite/Makefile.in: Regenerate.
4478 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4480 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
4483 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
4485 Further conform g++'s __vmi_class_type_info to the C++ ABI
4487 * libsupc++/cxxabi.h
4488 (__vmi_class_type_info::__flags_masks): Remove enumerations not
4489 required by the specification.
4491 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
4493 Renames, namespaces for testsuite utilities.
4494 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
4495 (gnu_allocator_tracker): Rename to allocation_tracker.
4496 (gnu_new_allocator): Rename to tracker_alloc.
4497 (__set_testsuite_memlimit): Rename to set_memory_limits.
4498 (gnu_assignment_operator): Rename to assignment_operator.
4499 (gnu_destructor): Rename to destructor.
4500 (gnu_copy_tracker): Rename to copy_tracker.
4501 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
4502 (run_tests_wrapped_locale): New.
4503 (run_tests_wrapped_env): New.
4504 * testsuite/testsuite_hooks.cc: Same.
4505 (class locale_data): Add.
4506 (class enviornment_variable): Add.
4507 (class not_found): Add.
4508 * testsuite/testsuite_allocator.h: Same.
4509 * testsuite/testsuite_allocator.cc: Same.
4510 * testsuite/23_containers/deque_ctor.cc
4511 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
4513 Change gnu_new_allocator to tracker_alloc.
4514 Change gnu_counting_struct to counter.
4515 Change gnu_copy_tracker to copy_tracker.
4516 Change gnu_copy_constructor to copy_constructor.
4517 Change gnu_assignment_operator to assignment_operator.
4519 * testsuite/23_containers/vector_capacity.cc: Same.
4520 * testsuite/23_containers/vector_ctor.cc (test01): Same.
4521 * testsuite/23_containers/list_modifiers.cc: Change
4522 gnu_copy_tracker to copy_tracker.
4523 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
4524 __set_testsuite_memlimit to set_memory_limits.
4525 * testsuite/21_strings/insert.cc (main): Same.
4526 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
4527 * testsuite/27_io/stringstream.cc: Same.
4528 * testsuite/27_io/stringbuf.cc: Same.
4529 * testsuite/27_io/streambuf.cc: Same.
4530 * testsuite/27_io/ostream.cc: Same.
4531 * testsuite/27_io/istream.cc: Same.
4532 * testsuite/27_io/fstream.cc: Same.
4533 * testsuite/lib/libstdc++-v3-dg.exp
4534 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
4535 three levels deeper in glob patterns.
4537 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
4539 * docs/doxygen/tables.html: Finished now.
4540 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
4541 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
4544 * include/bits/deque.tcc, include/bits/stl_alloc.h,
4545 include/bits/stl_deque.h, include/bits/stl_list.h,
4546 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
4549 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
4551 * configure.in: Revert.
4552 * configure: Regenerate.
4554 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
4556 * include/Makefile.am (install-data-local): Prepend
4557 $(DESTDIR) to destination paths in all (un)installation
4558 commands. Use ${c_base_builddir} and ${std_builddir}
4559 as destination subdirectories to achieve consistency with
4560 preceding mkinstalldirs commands. No effect because both
4561 variables contain "." only.
4562 * include/Makefile.in: Regenerate.
4564 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
4566 * include/Makefile.am (stamp-*): Add checks for existing stamps.
4567 * include/Makefile.in: Regenerate.
4569 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
4570 * aclocal.m4: Regenerate.
4572 * configure.in: Don't add new multi-do rules every time the
4573 directory is reconfigured.
4574 * configure: Regenerate.
4576 2003-01-08 Brad Spencer <spencer@infointeractive.com>
4577 Nathan Myers <ncm@cantrip.org>
4579 * src/Makefile.am (stamp-debug): Clean.
4580 * src/Makefile.in: Regenerate.
4582 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
4585 * Makefile.am (distclean-multi): Fix.
4586 * Makefile.in: Regenerate.
4588 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
4590 * include/bits/locale_facets.h (messages): Move ctor, dtor
4592 (__timepunct): Same.
4593 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
4594 definitions. Conditionalize for GNU systems.
4595 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
4597 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
4598 definitions. Conditionalize for GNU systems.
4599 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
4601 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
4602 * src/locale.cc: Define.
4603 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
4605 * config/locale/gnu/time_members.h: Use it.
4606 * config/locale/gnu/messages_members.h: Use it.
4607 * config/linker-map.gnu: Add locale::facets details.
4608 * include/Makefile.am (target_headers_extra): Add time_members.h.
4609 * include/Makefile.in: Regenerate.
4610 * acinclude.m4: Export CTIME_H.
4611 * aclocal.m4: Regenerate.
4612 * configure: Regnerate.
4614 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
4617 (codecvt<char, char, mbstate_t>::do_in, do_out):
4618 Tweak parameters to avoid unused parameter warnings.
4620 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
4623 * include/bits/locale_facets.cc (num_put::_M_convert_float):
4624 Limit __prec to digits10 + 2, not digits10 + 1, taking into
4625 account the possibility of %{g,G} conversion specifiers
4626 inside _S_format_float.
4627 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
4629 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4631 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
4632 libstdc++-v3-list-sourcefiles): Additionally handle files one
4633 level deeper in glob patterns.
4635 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
4636 * testsuite/27_io/istream_extractor_arith/01.cc,
4637 testsuite/27_io/istream_extractor_arith/02.cc,
4638 testsuite/27_io/istream_extractor_arith/03.cc,
4639 testsuite/27_io/istream_extractor_arith/06.cc,
4640 testsuite/27_io/istream_extractor_arith/07.cc,
4641 testsuite/27_io/istream_extractor_arith/08.cc,
4642 testsuite/27_io/istream_extractor_arith/09.cc,
4643 testsuite/27_io/istream_extractor_arith/10.cc,
4644 testsuite/27_io/istream_extractor_arith/11.cc,
4645 testsuite/27_io/istream_extractor_arith/12.cc,
4646 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
4647 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
4650 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
4654 (codecvt<char, char, mbstate_t>::do_in, do_out):
4655 Implement the resolution of DR19 (TC).
4656 * testsuite/22_locale/codecvt_members_char_char.cc
4659 2003-01-02 Jason Merrill <jason@redhat.com>
4661 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
4662 *__mem is also an output.
4663 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.