* ChangeLog.6: Fix misspellings.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blobfcdb9e01e9773f7222e41cbe87f599e6802d8cfe
1 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
3         * 22_locale/num_put/put/char/7.cc: New.
4         * 22_locale/num_put/put/wchar_t/7.cc: New.
6 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
8         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
9         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
11 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
13         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
14         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
15         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
16         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
17         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
18         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
19         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
20         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
21         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
22         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
23         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
24         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
25         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
26         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
27         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
28         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
29         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
30         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
31         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
32         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
33         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
34         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
35         * data/seekoff-1.tst: Remove.
36         * data/seekoff-1io.tst: New.
37         * data/seekoff-1out.tst: New.
38         * data/seekoff-2.tst: Remove.
39         * data/seekoff-2io.tst: New.
40         * data/seekoff-2out.tst: New.
41         * data/seekoff.txt
42         * data/seekpos-1.tst: Remove.
43         * data/seekpos-1io.tst: New.
44         * data/seekpos-1out.tst: New.
45         * data/seekpos-2.tst: Remove.
46         * data/seekpos-2io.tst: New.
47         * data/seekpos-2out.tst: New.
48         * data/seekpos.txt: New.
50 2003-06-27  Jerry Quinn  <jlquinn@optonline.net>
52         * src/locale.cc (__use_cache<numpunct>): Move from here ...
53         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
54         here.
56 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
58         * include/bits/stl_algobase.h: Fully qualify standard
59         functions with std::, thus avoiding Koenig lookup.
61 2003-06-30  Doug Gregor <dgregor@apple.com>
62         
63         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
64         subscripting empty string. 
66 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
68         * testsuite/Makefile.am (check-am):  Do not override.
69         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
70         * testsuite/Makefile.in:  Regenerate.
72 2003-06-30  Doug Gregor <dgregor@apple.com> 
73         
74         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
75         Don't initialize an insert_iterator with a singular iterator.
77 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
78         
79         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
80         * aclocal.m4: Regenerate.
81         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
82         GLIBCPP_ENABLE_PCH, default to yes.
83         * configure: Regenerate.
84         * docs/html/configopts.html: Add --enable-pch.
85         
86 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
88         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
89         (libstdc++-v3-init):  Also set LD_RUN_PATH.
91 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
93         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
94         from here to filebuf and stringbuf.
95         (~basic_streambuf()): Don't set _M_mode.
96         (basic_streambuf()): Don't set _M_mode.
97         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
98         (~basic_filebuf()): Clean up.
99         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
100         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
101         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
102         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
103         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
104         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
105         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
107 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
109         * include/std/std_fstream.h (_M_underflow): Remove.
110         (uflow): Remove, inherited from streambuf.
111         (underflow): Only declare.
112         * include/bits/fstream.tcc (_M_underflow): Rename to 
113         underflow, to which is equivalent for __bump == false,
114         simplify.
115         * include/std/std_sstream.h (_M_underflow): Remove.
116         (uflow): Remove, inherited from streambuf.
117         (underflow): Only declare.
118         * include/bits/sstream.tcc (_M_underflow): Rename to 
119         underflow, to which is equivalent for __bump == false,
120         simplify.
122 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
124         * include/bits/stl_algo.h: Fully qualify standard functions
125         with std::, thus avoiding Koenig lookup.
127 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
129         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
130         Improve type correctness-wise.
131         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
132         Likewise.
133         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
134         Likewise.
135         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
136         Likewise.
138 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
140         * include/std/std_streambuf.h (uflow): According to
141         27.5.2.4.3,p16, don't check gptr() < egptr().
143 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
145         PR libstdc++/9875
146         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
147         (seekpos): Likewise.
148         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
149         New test.
150         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
151         New test.
153 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
155         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
156         output name to libstdc++-v3-performance.sum.
157         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
158         * testsuite/Makefile.in: Regenerate.
159         
160 2003-06-27  Matthias Klose  <doko@debian.org>
162         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
163         output of abi-check in libstdc++-v3-abi.sum.
164         * testsuite/Makefile.in: Regenerate.
166 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
168         * config/os/bsd/netbsd/ctype_noninline.h
169         (_C_ctype_): Declare.
170         (ctype<char>::classic_table): Return _C_ctype_ + 1.
171         (ctype<char>::ctype): Use classic_table.
173 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
174             Nathan C. Myers  <ncm-nospam@cantrip.org>
176         PR libstdc++/9178
177         * include/bits/fstream.tcc (_M_underflow): Properly estimate
178         the worst-case number of external bytes for a given get area.
179         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
181 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
182             Petur Runolfsson  <peturr02@ru.is>
184         PR libstdc++/11305
185         * include/bits/fstream.tcc (overflow): Properly estimate the
186         worst-case number of external bytes for a given put area
187         (by using codecvt::max_length()).
188         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
189         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
190         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
191         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
193 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
195         * config/linker-map.gnu: Remove ; after __numpunct_cache.
197 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
199         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
200         to the imbued locale.
201         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
202         _M_getloc.
203         (num_put::_M_convert_float): Use.
205 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
206             Jerry Quinn  <jlquinn@optonline.net>
208         * config/linker-map.gnu: Add __numpunct_cache.
209         * config/locale/gnu/numeric_members.cc
210         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
211         all elements for "C" locale.
212         (numpunct::~numpunct): Delete _M_data.
213         * config/locale/generic/numeric_members.cc: Same.       
214         * include/bits/basic_ios.tcc
215         (basic_ios::init): Remove __locale_cache bits.
216         (basic_ios::_M_cache_locale): Same.
217         * include/bits/ios_base.h: Same. Tweaks. 
218         * include/bits/locale_classes.h: Tweaks. Reorder classes.
219         (__use_cache): Make friends with _Impl, locale.
220         (_Impl::_M_caches): Add.
221         (_Impl::_M_install_cache): Add.
222         * include/bits/locale_facets.h (__numpunct_cache): New.
223         (numpunct): Encapsulate data members in __numpunct_cache member,
224         _M_data. Adjust virtuals.
225         (numpunct::numpunct): New ctor for the same. 
226         (__locale_cache_base): Remove.
227         (__locale_cache): Remove.       
228         * include/bits/locale_facets.tcc (__use_cache): New function,
229         specializations.
230         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
231         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
232         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
233         * src/locale-inst.cc: Same. Add __numpunct_cache.
234         * src/locale.cc: Tweak inlines.
235         (__use_cache): Define specializations.
236         * src/localename.cc: Use global bits.
237         (_Impl::~Impl): Deal with __numpunct_cache destruction.
238         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
239         (_Impl::_M_init_facet): Take into account __numpunct_cache.
240         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
241         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
243 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
244             Paolo Carlini  <pcarlini@unitus.it>
246         * testsuite/performance/filebuf_copy.cc: New, testing char
247         by char file copy.
249 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
250             Nathan C. Myers  <ncm-nospam@cantrip.org>
252         * include/bits/fstream.tcc (_M_underflow): When the actual
253         end of file is reached, set 'uncommitted' mode to allow a
254         next write without an intervening seek (see C++98 27.8.1.1,2
255         and C89 7.9.5.3).
256         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
258 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
260         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
261         sputc): Move inline, from here...
262         * include/std/std_streambuf.h: ... to here.
264         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
265         sputbackc, sungetc, sputc): Use __builtin_expect.
267 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
269         * docs/doxygen/mainpage.html:  Use a useful title.
271 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
273         * docs/html/documentation.html: Remove assignment info.
274         * docs/html/17_intro/contribute.html: Edits.
275         * docs/html/17_intro/libstdc++-assign.tx: Remove.
277         * docs/html/test.html: Update.
279         * README: Update.
280         
281 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
282             Ulrich Drepper  <drepper@redhat.com>
284         * testsuite/testsuite_performance.h: Tweak mallinfo.
286 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
287             Nathan C. Myers  <ncm-nospam@cantrip.org>
289         * include/std/std_fstream.h (_M_filepos): Remove.
290         (_M_reading, _M_writing): New, encode the various I/O modes:
291         'read', 'write' and 'uncommitted'.
292         (sync): If there is something to flush, do it, then go to
293         'uncommitted' mode.
294         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
295         with three different cases: __off > 0 (upon underflow),
296         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
297         seekoff/pos).
298         (_M_underflow): Don't call overflow, set _M_reading to true
299         on success, tweak.
300         (pbackfail): Set _M_reading to true on pback creation, tweak.
301         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
302         set _M_writing to true on success, tweak.
303         (seekoff): Simplify, set _M_reading, _M_writing to false, call
304         _M_set_buffer(-1) ('uncommitted').
305         (open, close, setbuf): Set _M_reading, _M_writing to false and
306         call _M_set_buffer(-1), tweak.
307         (basic_filebuf): Don't set _M_buf_unified.
308         (_M_destroy_internal_buffer): Don't call setg and setp.
309         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
310         _M_writing and _M_set_buffer(-1).
311         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
312         _M_out_lim, _M_buf_unified): Remove.
313         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
314         (setp): Don't set _M_out_lim.   
315         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
316         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
317         upon open the mode is 'uncommitted' and therefore the put area
318         pointers are null.
319         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
320         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
321         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
322         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
323         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
324         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
325         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
326         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
327         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
328         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
329         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
330         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
331         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
332         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
333         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
334         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
335         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
336         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
337         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
338         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
340         * include/bits/fstream.tcc (showmanyc): Use only the
341         documented derivation interface to basic_streambuf (gptr(),
342         setg(), etc.) to work right with user specializations.
343         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
344         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
345         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
346         Likewise.
347         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
348         xsgetn): Likewise.
350 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
352         * configure.host (freebsd*): Set abi_baseline_pair.
353         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
354         (at or near first release) to 3.3.
355         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
356         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
357         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
359         * include/ext/mt_allocator.h: Portability.
360         * testsuite/testsuite_performance.h: Likewise.
362 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
364         * docs/html/17_intro/libstdc++-assign.txt: Update address.
366         * testsuite/performance/ifstream_getline.cc: Fix.
367         
368 2003-06-23  Doug Gregor <dgregor@apple.com>
370         * include/bits/boost_concept_check.h: Don't use _D or _R for type 
371         names.
373 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
374             Nathan C. Myers  <ncm-nospam@cantrip.org>
376         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
377         is now used only for filebuf, when _M_buf_unified is true.
378         epgtr() plays the role of _M_out_lim but it's only updated
379         upon overflow, underflow, uflow, seekoff/pos.
380         * include/bits/sstream.tcc (_M_underflow): New, implements
381         stringbuf::underflow and uflow.
382         (seekoff, seekpos): Tweak, use  _M_update_egptr.
383         * include/std/std_sstream.h (str): Rewrote, deal correctly
384         with the new logic, in particular, when pptr() > egptr().
385         (_M_sync): When __testout && !__testin set all the get area
386         pointers to the current string end.
387         (_M_update_egptr): New, internal function updating egptr()
388         to the actual string end.
389         (_M_underflow): New, declare.
390         (underflow): Dispatch to _M_underflow(false).
391         (uflow): Dispatch to _M_underflow(true).
393         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
394         seekpos): Use only the documented derivation interface to
395         basic_streambuf (gptr(), setg(), etc.) to work right with
396         user specializations.
397         * include/std/std_sstream.h (str, _M_sync): Likewise.
399 2003-06-20  Doug Gregor <dgregor@apple.com>
401         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
402         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
403         dereference end iterator.
404         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
405         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
406         index equal to the length of a string.
407         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
408         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
409         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
410         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
411         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
412         * testsuite/23_containers/list_modifiers.cc: Don't dereference
413         singular reverse iterator.
414         * testsuite/23_containers/vector_bool.cc: Don't increment singular
415         iterator.
416         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
418 2003-06-20  Doug Gregor <dgregor@apple.com>
420         * include/bits/basic_string.h (basic_string::replace): Dispatch 
421         _InputIterator version based on _Is_integer.
422         * include/bits/basic_string.tcc (basic_string::replace):
423         Renamed replace(iterator, iterator, size_type, _CharT) to
424         _M_replace_aux.
425         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
426         Test basic_string::assign(_InputIterator, _InputIterator),
427         which calls basic_string::replace(iterator, iterator,
428         _Input_iterator, _InputIterator).
430 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
432         * testsuite/testsuite_performance.h (resource_counter): Don't use
433         mallinfo at the moment.
435 2003-06-20  Matthias Klose  <doko@debian.org>
437         * configure.host: Set try_cpu to target_cpu for existing
438         baseline files.
440 2003-06-19  Andreas Jaeger  <aj@suse.de>
442         * testsuite/Makefile.am (extract_symvers): Revert accidental
443         change.
444         * testsuite/Makefile.in: Regenerate.
446         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
447         * configure: Regenerated.
449 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
451         * include/std/std_sstream.h (_M_sync): Make non virtual.
453 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
455         * testsuite/testsuite_performance.h (time_counter): New.
456         (resource_counter): New.
457         (report_performance): New.
458         (start_counters): New.
459         (stop_counters): New.
460         (clear_counters): New.
461         * testsuite/performance/allocator.cc: Instrument.
462         * testsuite/performance/cout_insert_int.cc: Same.
463         * testsuite/performance/complex_norm.cc: Same.
464         * testsuite/performance/filebuf_sputc.cc: New.
465         * testsuite/performance/fstream_seek_write.cc: Same.
466         * testsuite/performance/ifstream_getline.cc: Same.
467         * testsuite/performance/map_create_fill.cc: Same.
468         * testsuite/performance/ofstream_insert_float.cc: Same.
469         * testsuite/performance/ofstream_insert_int.cc: Same.
470         * testsuite/performance/string_append.cc: Convert.
471         * scripts/check_performance: New.
472         * testsuite/Makefile.am (check-performance): New.
473         (CLEANFILES): Add.
475 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
476             Benjamin Kosnik  <bkoz@redhat.com>
478         * include/std/std_sstream.h (setbuf): Check __n >= 0.
479         * include/bits/fstream.tcc (setbuf): Tweak.
481 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
483         * include/bits/sstream.tcc (seekoff): We can't seek beyond
484         _M_out_lim, therefore _M_move_out_cur boils down to simply
485         updating _M_out_cur.
486         (seekpos): Likewise, clean up.
488 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
489             Paolo Carlini  <pcarlini@unitus.it>
491         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
492         simply equivalent to the unbuffered case (0, 0) as far as
493         _M_buf_size is concerned.
495 2003-06-18  Andreas Jaeger  <aj@suse.de>
497         * testsuite/Makefile.am (new-abi-baseline): Create baseline
498         directory.
499         (baseline_file): Use baseline_dir.
500         (baseline_dir): New.
501         (mkinstalldirs): New.
503         * acinclude.m4: Rename baseline_file to baseline_dir, strip
504         filename from baseline_dir.
506         * testsuite/Makefile.in: Regenerated.
507         * Makefile.in: Regenerated.
508         * aclocal.m4: Regenerated.
509         * configure: Regenerated.
511 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
513         * configure.in: Missed check_survey bit.
514         * configure: Regenerated.
516 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
518         * scripts: New.
519         * config/abi/extract_symvers: Move to...
520         * scripts/extract_symvers: ...here.
521         * mkcheck.in: Move to..
522         * scripts/check_survey.in: ...here.
523         * testsuite_flags.in: Move to..
524         * scripts/testsuite_flags.in: ...here.
525         * configure.in: Change check and testsuite_flags locations.
526         * configure: Regenerate.
527         * testsuite/Makefile.am (current_symbols.txt): Change location.
528         * testsuite/Makefile.in: Regenerate.
529         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
530         location of testsuite_flags.
531         * Makefile.am (check-script): Move..
532         (check-script-install): Move...
533         * testsuite/Makefile.am: ... here.
534         * testsuite/Makefile.in: Regenerate.
535         * Makefile.in: Regenerate.
537 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
539         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
541 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
543         * Makefile.am (check-abi): Move...
544         (new-abi-baseline): Move...
545         * testsuite/Makefile.am: ...here.
546         (new-abi-baseline): Conditionalize.
547         (check-abi): Conditionalize.
548         (check-abi-verbose): New.
549         * Makefile.in: Regenerate.
550         * testsuite/Makefile.in: Regenerate.
551         * configure.in: Consolidate testsuite configure bits.
552         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
553         * configure: Regenerate.
554         * aclocal.m4: Regenerate.
555         * testsuite/abi_check.cc: Add --check-verbose.
556         Only output detailed information if --check-verbose.
558 2003-06-16  Andreas Jaeger  <aj@suse.de>
560         * testsuite/abi_check.cc: Create summary report.
562 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
564         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
565         for systems with BUFSIZ != 8192.
566         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
567         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
568         Minor tweaks.
570 2003-06-16  Andreas Jaeger  <aj@suse.de>
572         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
573         check-abi multilib aware.
574         * aclocal.m4: Regenerate.
575         * configure: Regenerate.
577 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
578             Andreas Jaeger  <aj@suse.de>
580         * configure.host: Set x86_64 abi_baseline pair correctly.
582 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
584         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
585         fix for missing seeks between gets and puts into...
586         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
587         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
588         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
589         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
590         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
591         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
593 2003-06-15  Richard Henderson  <rth@redhat.com>
595         * config/linker-map.gnu: Export virtual function thunks for
596         64-bit systems too.
598 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
600         * config/abi/i686-pc-linux-gnu: To..
601         * config/abi/i486-linux-gnu: ...this.
602         * config/abi/alphaev67-unknown-linux-gnu: To..
603         * config/abi/alpha-linux-gnu: ...this.
604         * config/abi/ia64-unknown-linux-gnu: To...
605         * config/abi/ia64-linux-gnu: ...this.
606         * config/abi/x86_64-unknown-linux-gnu: To...
607         * config/abi/x86_64-linux-gnu: ...this.
608         * config/abi/i386-unknown-freebsd4: To...
609         * config/abi/i386-freebsd4: ...this.
610         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
611         CXXABI.
612         * configure.host: abi_baseline_triplet to abi_baseline_pair.
613         Simplify cpu bits so that abi_baseline_pair can use the same
614         cpu configuration.
615         * acinclude.m4: Same.
616         * aclocal.m4: Regenerate.
617         * configure.in: Can't get enable_abi_check to yes unless native.
618         * configure: Regenerate.
620 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
622         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
623         fix for missing seeks between gets and puts into...
624         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
625         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
626         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
627         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
628         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
629         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
630         for missing seeks between gets and puts.
631         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
632         * testsuite/data/seekoff-1.tst: New.
633         * testsuite/data/seekoff-2.tst: New.
634         * testsuite/data/seekpos-1.tst: New.
635         * testsuite/data/seekpos-2.tst: New.
637 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
639         Avoid multi-processor bus contention on increment/decrement-and-
640         test of the reference count in the empty-string object, by comparing
641         addresses first, and never touching the reference count of the empty-
642         string object.
643         * include/bits/basic_string.h:
644         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
645         members.
646         (_Rep::_S_empty_rep()): New accessor.
647         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
648         a base class _Rep_base.
649         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
650         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
651         since no longer must increment its refcount.
652         * include/bits/basic_string.tcc:
653         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
654         return immediately.  The former might be unnecessary.  The latter
655         prevents begin() and end() from cloning it unnecessarily.
656         (_S_construct(_InIterator, _InIterator, const _Alloc&,
657         input_iterator_tag), _S_construct(_InIterator, _InIterator,
658         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
659         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
660         (_M_mutate): Check for the empty string and treat it as shared.
661         This is necessary here because _M_mutate is sometimes called with
662         all-zero arguments; in all other uses of _M_is_shared, the test comes
663         out right anyhow.
665 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
667         * src/allocator-inst.cc: Explicitly instantiate.
668         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
669         Tweaks.
670         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
672 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
674         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
675         * aclocal.m4: Regenerate.
676         * Makefile.am (SUBDIRS): Remove libio.
677         * Makefile.in: Regenerate.
678         * configure.in: Same.
679         * configure: Regenerate.
680         * config/io/basic_file_libio.cc: Remove.
681         * config/io/basic_file_libio.h: Remove.
682         * config/io/c_io_libio_codecvt.c: Remove.
683         * config/io/c_io_libio.h: Remove.
684         * libio/*: Remove.
685         * src/Makefile.am: Same.
686         * src/Makefile.in: Regenerate.
687         * docs/html/configopts.html: Edits.
688         * docs/html/explanations.html: Edits.
690 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
692         * include/bits/stl_alloc.h (__debug_alloc): Move out.
693         (__malloc_alloc): Same.
694         (__pool_alloc): Same.
695         (__new_alloc): Same.
696         Rename to..
697         * include/bits/allocator.h: ...this.
698         * include/bits/stl_deque.h: Modify comment.
699         * include/bits/stl_tree.h: Modify include.
700         * include/std/std_memory.h: Same.
701         * include/ext/rope: Same.
702         * include/ext/slist: Same.
703         * include/std/std_vector.h: Same.
704         * include/std/std_stack.h: Same.
705         * include/std/std_queue.h: Same.
706         * include/std/std_list.h: Same.
707         * include/std/std_deque.h: Same.
708         * include/backward/alloc.h: Same.
709         * include/ext/debug_allocator.h: New.
710         * include/ext/malloc_allocator.h: New.
711         * include/ext/pool_allocator.h: New.
712         * include/ext/new_allocator.h: New.
713         * include/bits/pthread_allocimpl.h: Remove.
714         * include/bits/stl_pthread_alloc.h: Remove.
715         * include/Makefile.am (ext_headers): Add.
716         * include/Makefile.in: Regenerate.
717         * src/stl-inst.cc: Use __gnu_cxx namespace.
718         * src/stl-inst.cc: Move to...
719         * src/allocator-inst.cc: Here.
720         * src/Makefile.am (sources): Update.
721         * src/Makefile.in: Regenerate.
722         * config/linker-map.gnu: Remove __pool_alloc bits.
723         * testsuite/ext/headers.cc: Add.
724         * testsuite/ext/allocators.cc: Fixup.
726 2003-06-11  Stefan Olsson  <stefan@snon.net>
727             Ola Rönnerup  <fnolis@home.se>
729         * include/Makefile.am (ext_headers): Add.
730         * include/Makefile.in: Regenerate.
731         * include/ext/mt_allocator.h: New file.
733 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
735         * include/bits/fstream.tcc (close): Clean up a bit.
737         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
739         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
740         - the saved _M_in_cur, that is - cannot be null.
741         (sync): Constify a variable.
743         * include/std/std_streambuf.h: Tweak a comment.
744         (in_avail): Constify a variable.
746 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
748         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
749         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
750         correctness of container::iterator typedefs.  Fix whitespace.
751         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
752         to allocator docs.
753         * docs/html/documentation.html:  Regenerate.
755         * include/bits/basic_string.h, include/bits/basic_string.tcc,
756         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
757         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
758         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
759         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
760         include/bits/stl_vector.h, include/bits/vector.tcc,
761         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
762         Change _Iter names to _Iterator, and __pos to __position.
764         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
765         include/bits/stl_multiset.h, include/bits/stl_set.h:
766         Remove emacs markers.
768         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
770 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
772         * include/bits/fstream.tcc (overflow): According to
773         27.5.2.4.5, overflow() returns not_eof(eof()).
774         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
775         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
777 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
779         * include/bits/fstream.tcc (_M_underflow): Check overflow return
780         value; tweak slightly.
782 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
784         * include/bits/fstream.tcc (_M_underflow): Do not special
785         case the unbuffered case, which really means simply a one char
786         get area.
787         (basic_filebuf): Initialize _M_buf_size.
788         (setbuf): Unbuffered means _M_buf_size == 1, since only
789         _M_buf_size - 1 == 0 chars are going to be used for the
790         put area and 1 for the get area.
791         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
792         (~basic_streambuf): Tweak.
793         (basic_streambuf): Do not initialize _M_buf_size.
794         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
795         (~basic_filebuf): Tweak.
796         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
797         unbuffered situation (i.e., put area pointers NULL).
798         * include/bits/streambuf.tcc (sbumpc): Clean up.
799         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
800         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
801         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
802         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
803         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
804         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
805         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
807 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
809         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
810         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
811         statements.
812         * configure.in:  Centralize AM_CONDITIONALs so that they are always
813         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
814         * aclocal.m4, configure:  Regenerated.
816 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
818         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
820 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
822         * include/bits/stl_iterator.h
823         (reverse_iterator::reverse_iterator()): Apply DR235: default
824         constructor default-initializes data member.  Instantiated on a
825         pointer type, the member has to end up equal to zero.
827 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
829         * include/bits/stl_alloc.h: Cleanups.
830         * include/ext/functional: Same.
831         * include/ext/hash_map: Same.
832         * include/ext/hash_set: Same.
833         * include/ext/iterator: Same.
834         * include/ext/memory: Same.
835         * include/ext/numeric: Same.
836         * include/ext/rb_tree: Same.
837         * include/ext/ropeimpl.h: Same.
838         * include/ext/slist: Same.
839         * include/ext/stdio_filebuf.h: Same.
840         * include/ext/stdio_sync_filebuf.h: Same.
841         * include/ext/stl_rope.h: Move to...
842         * include/ext/rope: ...here.
843         * include/ext/stl_hash_fun.h: Move to...
844         * include/ext/hash_fun.h: ...here.
845         * include/ext/stl_hashtable.h: Move to...
846         * include/ext/hashtable.h: ...here.
847         * include/backward/hashtable.h: Reflect new names.
848         * include/Makefile.am: Same.
849         * include/Makefile.in: Regenerated.
851 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
853         PR libstdc++/9024
854         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
855         * include/bits/stl_algobase.h: Tweak.
856         * include/std/std_fstream.h: Move _M_buf_size to...
857         * include/std/std_streambuf.h: ...here. Modify.
858         * include/bits/streambuf.tcc: Same.
859         * testsuite/testsuite_hooks.h: Tweak.
860         * testsuite/testsuite_io.h (constraint_filebuf): New.
861         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
862         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
863         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
864         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
865         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
866         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
867         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
868         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
869         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
870         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
871         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
872         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
873         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
874         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
875         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
876         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
877         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
878         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
879         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
880         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
881         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
882         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
883         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
884         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
885         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
886         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
887         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
888         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
889         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
890         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
891         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
892         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
893         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
894         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
895         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
896         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
897         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
898         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
899         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
900         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
901         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
902         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
903         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
904         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
905         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
906         * testsuite/data/sgetc.txt: New.
907         * testsuite/data/sgetn.txt: New.
909 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
911         PR libstdc++/11095
912         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
913         Deal with width() smaller than zero.
914         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
915         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
916         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
917         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
918         operator<<(basic_ostream, const basic_string&)): Likewise.
920         * testsuite/27_io/basic_istream/extractors_character/char/
921         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
922         * testsuite/27_io/basic_ostream/inserters_character/char/
923         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
924         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
925         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
927 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
929         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
930         .gch compilation works.
931         * aclocal.m4, configure: Regenerate.
932         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
933         initialize PCHFLAGS.
935 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
937         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
938         erase(iterator), erase(iterator, iterator), c_str,
939         compare(const basic_string&)): Constify various variables.
940         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
941         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
942         _S_create, resize, _M_replace, _M_replace_safe,
943         append(const basic_string&), append(const basic_string&, size_type,
944         size_type), append(const _CharT*, size_type), append(size_type,
945         _CharT), operator+(const _CharT*, const basic_string&),
946         operator+(_CharT, const basic_string&), replace(iterator, iterator,
947         size_type, _CharT), find(const _CharT*, size_type, size_type),
948         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
949         rfind(_CharT, size_type), compare(size_type, size_type,
950         const basic_string&), compare(size_type, size_type,
951         const basic_string&, size_type, size_type), compare(const _CharT*),
952         compare(size_type, size_type, const _CharT*), compare(size_type,
953         size_type, const _CharT*, size_type)): Likewise.
955 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
957         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
958         'if' branch less obscure.
960 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
962         PR libstdc++/9815
963         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
964         asm case to asm.
965         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
966         (__atomic_add): likewise.
968 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
970         * include/bits/sstream.tcc (pbackfail): Minor clean up and
971         reformatting, consistent with basic_filebuf::pbackfail.
973 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
975         PR libstdc++/11062
976         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
977         __attribute__ ((__unused__)).
978         * config/os/aix/atomicity.h:  Likewise.
980 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
982         PR libstdc++/9761
983         * include/bits/fstream.tcc (pbackfail): If the pback buffer
984         is already active don't try to store in it a second char.
985         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
987         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
989 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
991         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
992         line spacing.
994 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
996         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
997         instead of unnecessarily taking the address of _M_pback.
998         (xsgetn): Simplify slightly for a single char pback buffer.
1000 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1002         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
1003         variables and two 'if', clean up.
1005 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
1007         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
1008         not _M_out_end, since the former actually points to the string
1009         end (vs buffer end).
1010         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
1012 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
1014         * docs/doxygen/filter:  New file.
1015         * docs/doxygen/filter.sed:  New file.
1016         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
1017         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
1018         * docs/html/documentation.html:  Fix links to doxygen pages.
1020 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
1022         * include/bits/fstream.tcc (_M_convert_to_external): Don't
1023         check for __ilen > 0.
1025 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
1027         PR libstdc++/10783
1028         * include/bits/stl_iterator.h (class __normal_iterator):
1029         Don't inherit from iterator, add missing typedefs.
1031 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
1033         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
1034         * testsuite/24_iterators/reverse_iterator/1.cc: New.
1035         * testsuite/24_iterators/reverse_iterator/2.cc: New.
1036         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
1037         PR libstdc++/10783.
1039 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
1041         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
1042         on IA64 HP-UX.
1043         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
1044         _LIBUNWIND_STD_ABI is set.
1046 2003-05-26  Brendan Kehoe  <brendan@zen.org>
1048         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
1049         make sure the number of digits required after the decimal-point
1050         (if any) is exactly the value returned by frac_digits().
1051         * testsuite/22_locale/money_get/get/char/9.cc: New.
1052         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
1054 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
1056         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
1057         comment.
1059 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
1061         PR libstdc++/9339
1062         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
1063         (_M_pback): No array necessary.
1064         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
1065         unbuffered case, coalesec into ...
1066         (basic_filebuf::overflow): ...this.
1067         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
1068         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
1070 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1072         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
1073         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
1074         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
1075         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
1076         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
1077         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
1078         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
1079         libsupc++/eh_unex_handler.cc, libsupc++/exception,
1080         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
1081         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
1082         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
1083         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
1084         Replace "GNU CC" with "GCC".
1086         * include/backward/new.h: Replace "GNU CC" with "GCC".
1088 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1090         PR libstdc++/3066.
1091         * configure.in: Switch target to host, don't assume newlib.
1092         (target_alias): Remove.
1093         * configure: Regenerate.
1094         * acinclude.m4: Same.
1095         * aclocal.m4: Regenerate.
1096         * configure.target: Same. Rename to...
1097         * configure.host: This.
1099 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
1101         * include/std/std_fstream.h (_S_pback_size): Remove definition.
1102         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
1103         pback buffer.
1104         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
1105         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
1106         of _S_pback_size for systems with no COMDAT or weak support.
1107         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
1108         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
1109         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
1110         * testsuite/27_io/basic_fstream/3.cc: Likewise.
1111         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1112         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
1113         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
1114         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
1115         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
1117 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
1119         * include/bits/fstream.tcc (_M_underflow): Simplify:
1120         !__testout implies _M_filepos == _M_in_end, therefore
1121         the first _M_file.seekoff call is never issued.
1123 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
1125         * configure.in: Sort cross table.
1126         * configure: Regenerate.
1128 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
1130         PR libstdc++/10106
1131         * configure.in: Add Solaris cross bits.
1133 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1135         * libstdc++-v3/config/os/mingw32/os_defines.h
1136         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
1137         (NOMINMAX): Define.  Update copyright year.
1139 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
1141         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
1143 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
1145         * docs/html/faq/index.html: Fix typo.
1146         * docs/html/faq/index.txt: Regenerate.
1148 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
1150         * docs/html/test.html: Fix markup.
1152 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
1154         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
1155         zero.
1156         Update copyright year.
1158 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
1160         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
1162 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
1164         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
1165         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
1167 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1169         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
1170         Cast via void* to avoid -Wcast-align warnings.
1171         (__default_alloc_template::_S_refill): Likewise.
1173 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
1175         * testsuite/README: Move to...
1176         * docs/html/test.html: ...here. Add documentation.
1177         * docs/html/install.html: Move testing bits out..
1178         * docs/html/documentation.html: Add separate testing link.
1179         * testsuite/performance: Add.
1180         * testsuite/performance/allocator.cc: New.
1181         * testsuite/performance/complex_norm.cc: New.
1182         * testsuite/performance/cout_insert_int.cc: New.
1183         * testsuite/performance/fstream_seek_write.cc: New.
1184         * testsuite/performance/ifstream_getline.cc: New.
1185         * testsuite/performance/map_create_fill.cc: New.
1186         * testsuite/performance/ofstream_insert_float.cc: New.
1187         * testsuite/performance/ofstream_insert_int.cc: New.
1188         * testsuite/performance/string_append.cc: New.
1189         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
1190         performance tests.
1192 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
1194         PR libstdc++/10689
1195         * include/std/std_complex.h (pow): Tidy.
1197 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
1199         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
1200         that upon filebuf::close() 27.8.1.1,3 is enforced.
1202 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
1204         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
1206 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
1207             Nathan Myers  <ncm@cantrip.org>
1209         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
1210         _M_convert_to_external only once (_M_buf_size is now the size of
1211         the put area + 1 for the overflow char of a full area); call
1212         _M_set_buffer instead of _M_set_indeterminate.
1213         (setbuf): Don't accept a buffer smaller than 2 chars.
1214         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
1215         instead of _M_set_determinate.
1216         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
1217         (seekoff): Likewise.
1218         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
1219         std::ios_base::openmode, bool, size_t),
1220         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
1221         Likewise.
1222         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
1223         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
1224         _M_buf_size - 1.
1225         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
1226         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
1227         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
1228         the put area is now BUFSIZ - 1.
1229         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
1230         that now the smallest _M_buf_size is 2 (still fails, for the same
1231         reason, with 3.2.3)
1233 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
1235         * testsuite/thread/pthread4.cc: Tweak test.
1237 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
1239         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
1240         excess errors dg marker, use dg-errors instead.
1241         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
1242         * testsuite/20_util/auto_ptr_neg.cc: Same.
1244 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
1246         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
1247         cached member.
1248         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
1249         Initialize _M_codecvt.
1250         (basic_filebuf::imbue): Same.
1251         (basic_filebuf::showmanyc): Use it.
1252         (basic_filebuf::underflow): Use it.
1253         (basic_filebuf::_M_convert_to_external): Use it.
1254         (basic_filebuf::seekoff): Use it.
1255         (basic_filebuf::imbue): Use it, tweaks.
1256         * include/bits/localefwd.h (__check_facet): New.
1257         * include/bits/locale_classes.h: Tweaks.
1258         * include/bits/locale_facets.tcc: Tweaks.
1259         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
1260         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
1261         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
1262         * include/bits/basic_ios.tcc: Same.
1263         * include/bits/istream.tcc: Same.
1264         * include/bits/ostream.tcc: Same.
1265         * include/std/std_streambuf.h: Same.
1266         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
1267         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
1268         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
1269         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
1270         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
1271         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
1273 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
1275         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
1276         unnecessary includes and unused string literals.
1277         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
1278         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
1279         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
1280         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
1282 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
1284         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
1286 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
1288         * include/std/std_fstream.h (_M_convert_to_external): Change
1289         to return bool, take two less streamsize parameters.
1290         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
1291         consistently definition.
1292         (_M_overflow): Adjust call points.
1294 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
1296         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
1298 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
1300         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
1301         * testsuite/Makefile.in:  Regenerate.
1303 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
1305         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
1306         * testsuite/Makefile.in:  Regenerate.
1308 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
1310         PR libstdc++/3181
1311         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
1312         (acos): Handle integer argument.
1313         (asin): Likewise.
1314         (atan): Likewise.
1315         (atan2): Likewise.
1316         (ceil): Likewise.
1317         (cos): Likewise.
1318         (cosh): Likewise.
1319         (exp): Likewise.
1320         (fabs): Likewise.
1321         (floor): Likewise.
1322         (frexp): Likewise.
1323         (ldexp): Likewise.
1324         (log): Likewise.
1325         (log10): Likewise.
1326         (sin): Likewise.
1327         (sinh): Likewise.
1328         (sqrt): Likewise.
1329         (tan): Likewise.
1330         (tanh): Likewise.
1331         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
1332         (__enable_if): Likewise.
1333         * testsuite/26_numerics/cmath/overloads.C: New test.
1335 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
1337         PR libstdc++/9027
1338         PR libstdc++/9520
1339         PR libstdc++/10096
1340         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
1341         implementation, based on old wchar_t specialization, add support
1342         for codecvt::in() return value of codecvt_base::noconv, remove
1343         _M_file.sys_ungetc() call.
1344         * include/std/std_fstream.h (basic_file::underflow,
1345         basic_file::uflow, basic_file::_M_underflow):  Remove
1346         specialization declarations, call _M_underflow from generic versions
1347         of underflow and uflow.
1348         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
1349         basic_file::_M_underflow):  Remove specializations.
1350         * src/Makefile.am (sources):  Remove fstream.cc.
1351         * src/Makefile.in:  Regenerated.
1352         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
1353         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
1354         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
1355         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
1357 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
1359         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
1360         buffer.
1361         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
1362         unbuffered bits.
1363         (__basic_file::xsputn): Same.
1364         (__basic_file::seekoff): Same.
1365         (__basic_file::seekpos): Same.
1366         (__basic_file::showmanyc): Same.
1367         * config/io/basic_file_stdio.cc: Same.
1368         * include/std/std_fstream.h: Same.
1369         * include/bits/fstream.tcc: Same.
1370         * src/fstream.cc: Same.
1371         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
1373 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
1375         PR libstdc++/9520
1376         PR libstdc++/9661
1377         PR libstdc++/9662
1378         * include/ext/stdio_sync_filebuf.h:  New file.
1379         (basic_stdiobuf):  New.
1380         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
1381         * include/Makefile.in: Regenerate.
1382         * include/bits/ios_base.h (Init::_S_create_buffers,
1383         Init::_S_destroy_buffers):  Remove declarations.
1384         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
1385         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
1386         * src/ios.cc (Init::_S_create_buffers,
1387         Init::_S_destroy_buffers):  Remove.
1388         (Init::Init):  Create and use syncronized buffers.
1389         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
1390         create and install unsyncronized buffers.
1391         * testsuite/27_io/objects/char/10.cc:  New test.
1392         * testsuite/27_io/objects/char/9.cc:  New test.
1393         * testsuite/27_io/objects/char/9661-1.cc:  New test.
1394         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
1395         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
1396         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
1397         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
1398         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
1399         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
1400         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
1401         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
1402         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
1403         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
1404         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
1405         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
1406         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
1407         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
1408         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
1409         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
1410         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
1411         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
1412         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
1413         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
1414         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
1415         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
1416         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
1417         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
1418         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
1419         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
1420         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
1421         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
1422         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
1423         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
1424         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
1425         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
1426         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
1427         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
1428         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
1429         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
1430         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
1431         * testsuite/ext/stdiobuf_char.cc:  New test.
1432         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
1434 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
1436         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
1437         unnecessary includes and unused string literals.
1438         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
1440 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
1442         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
1444 2003-05-07  Richard Henderson  <rth@redhat.com>
1446         PR c++/10570
1447         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
1448         (__cxa_end_catch): Likewise.
1449         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
1450         _Unwind_Resume_or_Rethrow.
1451         * libsupc++/eh_personality.cc (empty_exception_spec): New.
1452         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
1453         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
1454         exceptions.  Don't push terminate/unexpected to cxa functions.
1455         (__cxa_call_unexpected): Remove foreign exception fixmes.
1457 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
1459         * testsuite/27_io/ios_base/cons: New.
1460         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
1461         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
1463 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
1465         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
1466         * src/fstream.cc
1467         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
1468         there is no buffer or __testget == !__testinit.
1470         * src/fstream.cc
1471         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
1472         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
1474         * include/std/std_fstream.h (_M_destroy_pback): Don't set
1475         unnecessarily _M_pback_cur_save and _M_pback_end_save.
1477         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
1479         * include/std/std_sstream.h (_M_sync): Minor tweak.
1481         * include/bits/fstream.tcc (close): No need to call
1482         _M_destroy_pback, setting _M_pback_init to false suffices
1483         to clean up.
1485 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
1487         * include/bits/stl_algo.h: Enums as _S_.
1488         * include/bits/stl_tree.h: Same.
1489         * include/bits/stl_bvector.h: Same.
1490         * include/bits/ios_base.h: Same.
1491         * include/bits/stl_alloc.h: Same.
1492         * include/ext/stl_hashtable.h: Same.
1493         * src/ios.cc: And here.
1495         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
1496         * include/bits/sstream.tcc: Same.
1498         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
1500         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
1502         * include/bits/locale_facets.h (__num_base): Remove protected.
1503         Use _S_[io]* names for enumerations.
1504         (_S_format_int): Remove.
1505         * include/bits/locale_facets.tcc: Same.
1506         * src/locale.cc: Same.
1508         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
1510 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
1512         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
1513         * docs/html/faq/index.txt:  Regenerated.
1515 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
1516             Matt Kraai <kraai@alumni.cmu.edu>
1518         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
1519         And retweak.
1521 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
1523         * configure.target (mips*): Use the generic atomicity.h by default.
1525 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
1526             (Inspired by an alternate patch from Danny Smith.)
1528         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
1529         (_Swap_lock_struct<>): ...and the horse it rode in on.
1530         * src/globals.cc (_Swap_lock_struct<>): Likewise.
1531         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
1532         member to support...
1533         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
1534         visibility rules related to POSIX threads.
1535         * testsuite/thread/pthread7-rope.cc: New test.
1537 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
1539         * testsuite/21_strings/basic_string/find/char/3.cc: New
1540         file, testing basic_string<char>::find_first_not_of.
1541         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
1542         Likewise for basic_string<wchar_t>.
1544 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
1546         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
1548 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
1550         * include/Makefile.am (CLEANFILES): Remove PCH files in target
1551         directory.
1552         * include/Makefile.in: Regenerate.
1554 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
1556         * include/std/std_sstream.h (str()): Tidy.
1558 2003-05-02  Nathan Myers  <ncm@cantrip.org>
1559             Paolo Carlini  <pcarlini@unitus.it>
1561         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
1563 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
1565         * include/bits/basic_string.h (swap): Remove redundant template
1566         parameters from declaration of non-template member function.
1568 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
1570         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
1571         * configure.in:  Move libintl.h header test...
1572         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
1573         the NLS-related test results into one symbol.
1574         * src/functexcept.cc:  Use it here.
1575         * aclocal.m4, config.h.in, configure:  Regenerated.
1577 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1579         * include/bits/sstream.tcc (overflow): Instead of calling
1580         str(), then _M_string.reserve, thus copying the contents
1581         of the current buffer two times, just copy the latter in
1582         a temporary, then use the 'swap trick'.
1584 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1586         * include/std/std_sstream.h (str()): Revert the best of the
1587         previous 'improvement', incorrect due to the COW nature of
1588         v3 basic_string; simplify.
1590 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1592         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
1593         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
1595 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
1597         * testsuite/abi_check.cc (check_version): Update known versions.
1598         Check added symbols for version_name != base version. Add missing
1599         symbols to incompatible list.
1601 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
1603         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
1604         * aclocal.m4: Regenerated.
1605         * configure: Regenerated.
1607 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1609         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
1610         Const-ify some variables.
1611         (basic_streambuf::xsputn): Likewise; change the type of some
1612         variables to size_t.
1613         (__copy_streambufs): Change some variables to size_t.
1615 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1617         * include/std/std_sstream.h (str()): Avoid constructing
1618         a basic_string temporary not only when it would turn out
1619         to be zero-sized but also when identical to the current
1620         _M_string buffer.
1622 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1624         * include/ext/stdio_filebuf.h
1625         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
1626         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
1627         Shorten a bit (-10 lines) by factoring out some code.
1629 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
1631         * acinclude.m4:  Add bit missing from previous patch.
1632         * aclocal.m4, configure:  Regenerated.
1634 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
1636         * docs/doxygen/mainpage.html:  Bring up to date.
1637         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
1638         in Doxygen.
1639         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
1640         breaks everything.  Don't scan them.
1641         * docs/html/documentation.html:  Point to "Write after approval"
1642         notes.
1644 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
1646         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
1647         of libc if message translations are being used.  Fix info text in
1648         xieee_1003.1-2001 case.
1649         * aclocal.m4, configure:  Regenerate.
1651 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
1652            Loren J. Rittle <ljrittle@acm.org>
1653            Martin v. Loewis  <martin@v.loewis.de>
1655         * config/cpu/i386/atomicity.h: New file.
1657 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
1659         * include/bits/fstream.tcc (open): Change to single return.
1661 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
1663         * include/std/std_sstream.h (underflow): Change to single return.
1665 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1667         * include/std/std_streambuf.h (_M_buf): is currently
1668         used only for basic_filebuf, therefore move it there.
1669         (basic_streambuf(), ~basic_streambuf()): Adjust.
1670         * include/std/std_fstream.h (_M_buf): Moved here.
1671         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
1672         is actually redundant for basic_stringbuf.
1673         (_M_really_sync): Likewise.
1674         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
1675         * include/bits/sstream.tcc (seekoff): Adjust.
1677 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
1679         * src/localename.cc: Standardize exception strings.
1680         * src/locale.cc: Same.
1681         * src/ios.cc: Same.
1682         * include/bits/basic_string.tcc: Same.
1683         * include/bits/basic_ios.tcc: Same.
1684         * include/std/std_bitset.h: Same.
1685         * include/ext/ropeimpl.h: Same.
1686         * include/bits/stl_vector.h: Same.
1687         * include/bits/stl_deque.h: Same.
1688         * include/bits/stl_bvector.h: Same.
1689         * config/locale/generic/c_locale.cc: Same.
1690         * config/locale/gnu/c_locale.cc: Same.
1691         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
1693         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
1695 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1697         * include/std/std_streambuf.h (_M_buf_size): is currently
1698         used only for basic_filebuf, therefore move it there.
1699         (basic_streambuf(), ~basic_streambuf()): Adjust.
1700         * include/std/std_fstream.h (_M_buf_size): Moved here.
1701         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
1703 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1705         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
1706         _M_buf_size (synced input is now correctly dealt with
1707         elsewhere); when the output buffer is full don't fall back
1708         to a snextc-sputc loop, call overflow instead.
1710 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1712         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
1713         the innermost 'if' by factoring out some code.
1715 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
1717         * configure.in:  Test for libintl.h.
1718         * include/bits/c++config:  Define __N for everybody.
1719         * include/bits/basic_string.h, include/bits/stl_bvector.h,
1720         include/bits/stl_deque.h, include/bits/stl_vector.h,
1721         include/std/std_bitset.h:  Wrap all __throw* text with __N.
1722         * po/Makefile.am (pot):  New rule, mostly working.
1723         * src/functexcept.cc:  Call gettext on all __throw* arguments when
1724         -fexceptions is in effect.
1725         * po/Makefile.in, config.h.in, configure:  Regenerate.
1727 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
1729         PR libstdc++/9523
1730         * include/bits/ios_base.h (Init::_S_ios_create,
1731         Init::_S_ios_destroy):  Remove declarations.
1732         (Init::_S_create_buffers,
1733         Init::_S_destroy_buffers):  Declare
1734         * src/ios.cc (Init::_S_ios_create):  Remove
1735         (Init::_S_create_buffers):  Create buffers and add to streams.
1736         (Init::_S_ios_destroy):  Rename to...
1737         (Init::_S_destroy_buffers):  this.
1738         (Init::Init):  Only construct streams once.
1739         (Init::~Init):  Flush streams, don't destroy them.
1740         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
1741         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
1742         * testsuite/27_io/objects/char/5.cc:  New test.
1743         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
1744         * testsuite/27_io/objects/char/6.cc:  New test.
1745         * testsuite/27_io/objects/char/7.cc:  New test.
1747 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
1749         * testsuite/27_io/objects/char/8.cc:  New test.
1751 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
1753         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
1754         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
1756 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
1758         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
1759         _M_destroy_pback. _M_pback_create to
1760         _M_create_pback. _M_underflow_common to
1761         _M_underflow. _M_really_overflow to _M_overflow.
1762         * include/bits/fstream.tcc: Same.
1763         * src/fstream.cc: Same.
1764         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
1765         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
1766         * include/bits/streambuf.tcc: Same.
1767         * include/bits/fstream.tcc: Same.
1768         * include/bits/sstream.tcc: Same.
1770 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
1772         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
1773         from fixed size array.
1774         (locale): Change _S_categories as well.
1775         Formatting tweaks.
1776         * include/bits/locale_facets.tcc: Tweak.
1777         * config/locale/gnu/c_locale.cc: Assign _S_categories.
1778         * config/locale/generic/c_locale.cc: Same.
1779         * src/locale.cc: Tweak.
1780         * src/globals.cc: Change facet_name to name_vec, add names_c.
1781         * src/localename.cc: Use them.
1782         (locale::_Impl::~_Impl): Destroy _M_names.
1783         (locale::_Impl::_Impl): Create _M_names.
1785 2003-04-27  Andreas Schwab  <schwab@suse.de>
1787         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1788         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
1790 2003-04-27  Nathan Myers  <ncm@cantrip.org>
1792         Move some basic_string members out of line because
1793         they are too big to reasonably be inline.
1794         * include/bits/basic_string.h
1795         (assign(const basic_string&, size_type, size_type),
1796         assign(const _CharT*, size_type),
1797         insert(size_type, const basic_string&, size_type, size_type),
1798         insert(size_type, const _CharT*, size_type),
1799         replace(size_type, size_type, const _CharT*, size_type)):
1800         Move from here to...
1801         * include/bits/basic_string.tcc: ...here.
1803 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
1805         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
1806         the innermost 'if' by factoring out some code.
1808 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
1810         * include/bits/streambuf.tcc (__copy_streambufs): Don't
1811         use in_avail(), simplify.
1813 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
1815         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
1816         in basic_stringbuf it's unused.
1818         * include/std/std_sstream.h (underflow): consistently use
1819         _M_in_cur, not gptr().
1821 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
1822             Phil Edwards  <pme@gcc.gnu.org>
1824         * testsuite_flags.in: Guard against the possibility
1825         of having "xgcc" as a part of a folder name in the
1826         path to the GCC build folder.
1827         * testsuite/Makefile.am: Likewise.
1828         * testsuite/Makefile.in: Regenerated.
1830 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
1832         PR libstdc++/10132
1833         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
1834         exception specifications.
1835         (basic_filebuf::close): Same.
1836         (basic_filebuf::_M_pback_destroy): Same.
1837         (basic_filebuf::_M_destroy_internal_buffer): Same.
1838         (basic_filebuf): Remove __res_type typedef.
1839         * src/fstream.cc: Same.
1840         * include/bits/fstream.tcc
1841         (basic_filebuf::_M_convert_to_external): Simplify.
1842         (basic_filebuf::seekoff): Use has_facet before use_facet.
1843         (basic_filebuf::close): Add exception specification of throw().
1844         * testsuite/27_io/basic_filebuf/cons: New.
1845         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
1846         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
1847         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
1848         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
1850 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
1852         * include/bits/locale_classes.h
1853         (locale::_S_extra_categories_size): Remove.
1854         * src/locale.cc: Remove _S_extra_categories_size.
1855         * src/localename.cc: Same.
1856         * config/locale/gnu/c_locale.cc: Same.
1857         * config/locale/generic/c_locale.cc: Same.
1859 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
1861         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
1863 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
1865         * docs/html/17_intro/howto.html:  Update some links.
1866         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
1867         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
1868         * docs/html/ext/howto.html:  Link to demangler notes and API.
1869         * docs/html/faq/index.html:  Remove trailing whitespace.
1870         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
1871         (5.6):  Change to a bulleted list.
1873         * docs/html/faq/index.txt, docs/html/documentation.html,
1874         docs/html/17_intro/porting.html:  Regenerate.
1876 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
1878         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
1879         belongs to basic_filebuf.
1880         * testsuite/27_io/basic_fstream/3.cc: Likewise.
1881         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1882         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
1883         instantiation (now belongs to basic_filebuf).
1884         * testsuite/27_io/basic_iostream/3.cc: Likewise.
1885         * testsuite/27_io/basic_istream/3.cc: Likewise.
1886         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
1887         _S_pback_size now belongs to basic_filebuf.
1888         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
1889         instantiation (now belongs to basic_filebuf).
1890         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
1891         belongs to basic_filebuf.
1892         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
1893         instantiation (now belongs to basic_filebuf).
1894         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
1895         _S_pback_size now belongs to basic_filebuf.
1896         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
1897         instantiation (now belongs to basic_filebuf).
1898         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
1899         to basic_filebuf.
1900         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
1901         instantiation (now belongs to basic_filebuf).
1902         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
1904 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
1906         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
1907         * configure: Regenerated.
1909 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
1911         * config/locale/generic/c_locale.h (__convert_from_v): Use
1912         attribute unused.
1914 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
1916         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
1917         implementation only.
1918         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
1919         Comment and change to comply with DR 60 and the effect on gcount().
1920         * include/std/std_istream.h:  Update comments.
1921         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
1922         comments about reasons for tests.  Test sync() against gcount().
1923         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
1924         for effect on gcount().
1925         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
1926         for effect on gcount().
1928 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
1930         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
1931         Adjust timing.
1933 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
1935         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
1936         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
1937         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
1938         (basic_streambuf::basic_streambuf()): Adjust.
1939         * include/std/std_fstream.h (_S_pback_size, _M_pback,
1940         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
1941         _M_pback_create(), _M_pback_destroy()): Moved here
1942         from basic_streambuf.
1943         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
1944         Adjust.
1945         (basic_filebuf::_S_pback_size): Add declaration.
1946         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
1947         Remove declaration.
1949 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
1951         Consistently use _M_in_beg instead of eback(), _M_in_cur
1952         instead of gptr(), and so on.
1953         * include/bits/fstream.tcc (pbackfail, imbue): Here.
1954         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
1955         * include/bits/streambuf.tcc (sbumpc, sputbackc,
1956         __copy_streambufs): Ditto.
1957         * include/std/std_streambuf.h (sgetc): Ditto.
1959 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
1961         * include/bits/sstream.tcc (pbackfail, overflow):
1962         Formatting fixes.
1964 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
1966         * include/std/std_streambuf.h (uflow()): It's used only by
1967         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
1968         therefore do not consider the _M_buf_unified == true case.
1970         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
1972 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
1974         * docs/html/ext/howto.html ('LWG Issues'):
1975         Add issues 19, 90, 171, 231, 271.
1977 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
1979         * include/bits/sstream.tcc (pbackfail): Remove redundant
1980         NULL pointer check from test involving _M_in_*.
1981         (overflow, seekoff, seekpos): Const qualify bool variables.
1982         * include/std/std_sstream.h (underflow): Remove redundant
1983         NULL pointer check from test involving _M_in_*.
1984         (_M_really_sync): Const qualify bool variables.
1985         * src/fstream.cc (_M_underflow_common): Remove redundant
1986         NULL pointer check from test involving _M_in_*, const qualify
1987         bool variables.
1989         * include/std/std_streambuf.h (sgetc): Remove redundant
1990         variable.
1992 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
1994         According to 5.9 para 2 (second bullet) for pointers p, q
1995         pointing to the same type, with  p == 0 and q == 0, (p < q)
1996         is false.
1997         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
1998         seekoff): Remove redundant NULL pointer checks from tests
1999         involving _M_out_* and _M_in_*, const qualify bool variables.
2000         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
2001         qualify bool variables.
2002         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
2003         Remove redundant NULL pointer checks from tests involving
2004         _M_out_* and _M_in_*, const qualify bool variables.
2005         * include/std/std_fstream.h (sync): Likewise.
2006         (_M_is_indeterminate): Const qualify bool variables.
2007         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
2008         NULL pointer checks from tests involving _M_out_* and _M_in_*,
2009         const qualify bool variables.
2010         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
2011         variables.
2013 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
2015         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
2016         C99 FP macros, if actually captured.
2018         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
2019         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2020         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2021         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2022         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
2023         New macro.
2024         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
2025         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
2026         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
2027         * include/c_std/std_cstdlib.h: Use new macros.
2028         * include/c_std/std_cstdio.h: Use new macros.
2029         * include/c_std/std_cwchar.h: Use new macros.
2031 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2033         PR libstdc++/9555
2034         * include/bits/ostream.tcc: Catch all exceptions for formatted
2035         output, instead of std::exception and derivatives.
2036         * include/bits/istream.tcc: Same.
2037         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
2038         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
2039         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
2040         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
2041         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2042         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
2043         New.
2045 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
2047         * include/bits/c++config:  Minor cosmetic tweaks.
2049 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
2051         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
2052         * include/Makefile.am (pch_input): Find in ${target_builddir}.
2053         (pch_output): Rename to...
2054         (pch_output_builddir): ..this.  Find in ${target_builddir}.
2055         (pch_source): Tweak.
2056         (pch_build): Key off a built file.
2057         (pch_output rule): Rename to...
2058         (pch_input rule): ...this.  Produce ${pch_output_builddir}
2059         instead of ${pch_output}.
2060         (install-pch rule): Install ${pch_output_builddir}.
2061         * include/Makefile.in: Regenerated.
2063 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
2065         * include/std/std_streambuf.h (setp): _M_out_lim, being
2066         the end limit of used put area, is set equal to _M_out_beg.
2068 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
2070         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
2071         * aclocal.m4: Regenerated.
2072         * configure.in: Remove old demangler bits.
2073         Call pch checks.
2074         * configure: Regenerate.
2075         * config.h.in: Regenerate.
2076         * include/Makefile.am (allstamps): Now allstamped.
2077         (allcreated): Define this.
2078         (all-local): Use 'em.
2079         Conditionally define pch_build, pch_install based on
2080         GLIBCPP_BUILD_PCH.
2081         (${pch_output}): New rule.
2082         (install-pch): New rule.
2083         (install-headers): New rule.
2084         (install-data-local): Install headers and conditionally pch.
2085         * include/Makefile.in: Regenerate.
2086         * testsuite_flags.in (--build-cxx): Use pch file.
2088 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
2090         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
2092 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
2093             Paolo Carlini  <pcarlini at unitus dot it>
2095         PR libstdc++/9423
2096         * docs/html/27_io/howto.html
2097         ('The buffering is screwing up my program!'): Explain that
2098         opening counts as an I/O operation.
2100 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
2102         * testsuite/thread/pthread1.cc: Enable for darwin test.
2103         * testsuite/thread/pthread2.cc: Same.
2104         * testsuite/thread/pthread3.cc: Same.
2105         * testsuite/thread/pthread4.cc: Same.
2106         * testsuite/thread/pthread5.cc: Same.
2107         * testsuite/thread/pthread6.cc: Same.
2109 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
2111         libstdc++/7680
2112         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
2113         Populate it with multiple legal ways to obtain the C99 float
2114         transcendentals.  Use them instead of direct global reference.
2115         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
2116         * docs/html/17_intro/porting.texi
2117         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2118         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2119         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
2120         * config/os/bsd/freebsd/os_defines.h
2121         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
2122         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
2123         * testsuite/26_numerics/c_math_dynamic.cc: New file.
2125 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
2126             Benjamin Kosnik  <bkoz@redhat.com>
2128         * config/os/generic/ctype_inline.h: Fix.
2130 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
2132         * testsuite/testsuite_hooks.h
2133         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
2134         Change to try_named_locale.
2135         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
2137         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
2138         try_named_locale.
2139         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
2140         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
2141         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
2142         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
2143         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
2144         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
2145         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
2146         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
2147         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
2148         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
2149         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
2150         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
2151         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
2152         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
2153         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
2154         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
2155         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
2156         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
2157         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
2158         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
2159         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
2160         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
2161         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
2162         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
2163         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
2164         * testsuite/22_locale/collate/compare/char/1.cc: Same.
2165         * testsuite/22_locale/collate/compare/char/2.cc: Same.
2166         * testsuite/22_locale/collate/compare/char/3.cc: Same.
2167         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
2168         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
2169         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
2170         * testsuite/22_locale/collate/hash/char/2.cc: Same.
2171         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
2172         * testsuite/22_locale/collate/transform/char/2.cc: Same.
2173         * testsuite/22_locale/collate/transform/char/3.cc: Same.
2174         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
2175         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
2176         * testsuite/22_locale/collate_byname/1.cc: Same.
2177         * testsuite/22_locale/ctype/is/char/2.cc: Same.
2178         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2179         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
2180         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
2181         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
2182         * testsuite/22_locale/facet/2.cc: Same.
2183         * testsuite/22_locale/locale/cons/2.cc: Same.
2184         * testsuite/22_locale/locale/cons/4.cc: Same.
2185         * testsuite/22_locale/locale/cons/5.cc: Same.
2186         * testsuite/22_locale/locale/cons/7.cc: Same.
2187         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
2188         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
2189         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
2190         * testsuite/22_locale/messages/members/char/1.cc: Same.
2191         * testsuite/22_locale/messages/members/char/2.cc: Same.
2192         * testsuite/22_locale/messages/members/char/3.cc: Same.
2193         * testsuite/22_locale/messages_byname/1.cc: Same.
2194         * testsuite/22_locale/money_get/get/char/1.cc: Same.
2195         * testsuite/22_locale/money_get/get/char/2.cc: Same.
2196         * testsuite/22_locale/money_get/get/char/3.cc: Same.
2197         * testsuite/22_locale/money_get/get/char/4.cc: Same.
2198         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
2199         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
2200         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
2201         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
2202         * testsuite/22_locale/money_put/put/char/1.cc: Same.
2203         * testsuite/22_locale/money_put/put/char/2.cc: Same.
2204         * testsuite/22_locale/money_put/put/char/3.cc: Same.
2205         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
2206         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
2207         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
2208         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
2209         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
2210         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
2211         * testsuite/22_locale/num_get/get/char/1.cc: Same.
2212         * testsuite/22_locale/num_get/get/char/2.cc: Same.
2213         * testsuite/22_locale/num_get/get/char/3.cc: Same.
2214         * testsuite/22_locale/num_get/get/char/5.cc: Same.
2215         * testsuite/22_locale/num_get/get/char/6.cc: Same.
2216         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
2217         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
2218         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
2219         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
2220         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
2221         * testsuite/22_locale/num_put/put/char/1.cc: Same.
2222         * testsuite/22_locale/num_put/put/char/2.cc: Same.
2223         * testsuite/22_locale/num_put/put/char/3.cc: Same.
2224         * testsuite/22_locale/num_put/put/char/5.cc: Same.
2225         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
2226         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
2227         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
2228         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
2229         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
2230         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
2231         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
2232         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
2233         * testsuite/22_locale/numpunct_byname/1.cc: Same.
2234         * testsuite/22_locale/numpunct_byname/2.cc: Same.
2235         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
2236         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
2237         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
2238         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
2239         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
2240         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
2241         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
2242         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
2243         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
2244         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
2245         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
2246         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
2247         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
2248         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
2249         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
2250         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
2251         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
2252         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
2253         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
2254         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
2255         * testsuite/22_locale/time_put/put/char/1.cc: Same.
2256         * testsuite/22_locale/time_put/put/char/2.cc: Same.
2257         * testsuite/22_locale/time_put/put/char/3.cc: Same.
2258         * testsuite/22_locale/time_put/put/char/4.cc: Same.
2259         * testsuite/22_locale/time_put/put/char/5.cc: Same.
2260         * testsuite/22_locale/time_put/put/char/6.cc: Same.
2261         * testsuite/22_locale/time_put/put/char/7.cc: Same.
2262         * testsuite/22_locale/time_put/put/char/8.cc: Same.
2263         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
2264         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
2265         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
2266         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
2267         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
2268         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
2269         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
2270         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
2271         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
2272         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
2273         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
2274         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
2275         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
2277 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
2279         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
2280         solaris includes, not generic.
2282 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
2284         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
2286         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
2287         * include/bits/concept_check.h: Fix multi-line comment.
2288         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
2289         when target is *-*-freebsd*.
2291 2003-04-14  Nathan Myers  <ncm@cantrip.org>
2292             Paolo Carlini  <pcarlini@unitus.it>
2294         PR libstdc++/9701 (in_avail())
2295         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
2296         doesn't care if there is anything in some putback cell.
2297         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
2299         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
2300         unused string literals.
2302 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
2304         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
2305         _M_out_end, _M_set_indeterminate() does it.
2307 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2309         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
2311 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
2313         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
2314         Change basic_streambuf instantiation to "unsigned char".
2315         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2317 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
2319         Remove _M_buf_size_opt, use directly _M_buf_size instead.
2320         * include/bits/fstream.tcc
2321         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
2322         references to _M_buf_size_opt.
2323         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
2324         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
2325         __bufsize to __in_avail and __size_opt to __buf_size.
2326         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
2327         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
2328         * include/std/std_streambuf.h (~basic_streambuf(),
2329         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
2330         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
2331         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2332         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
2333         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
2334         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
2335         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
2336         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
2337         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
2338         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2339         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2340         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2341         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2343 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
2345         * include/ext/stdio_filebuf.h
2346         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
2347         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
2348         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
2349         since a stack-based buffer is used for small values of the size_t
2350         parameter.
2351         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
2352         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
2353         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
2355 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
2357         PR libstdc++/9533
2358         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
2359         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
2361 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
2363         * testsuite/22_locale/locale/cons/3.cc: Split.
2364         * testsuite/22_locale/locale/cons/7222-c.cc: New.
2365         * testsuite/22_locale/locale/cons/7222-env.cc: New.
2366         Check before trying to create a locale from the environment.
2367         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
2368         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2369         Adjust includes.
2371 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
2373         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
2374         locale to construct this hybrid locale, not the global locale.
2376 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
2378         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
2379         instantiation for AIX.
2380         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2381         * testsuite/25_algorithms/min_max.cc: Same.
2383 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2385         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
2386         twice.  Always set _M_cfile to 0 when stream was open.
2388 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
2390         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
2391         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
2392         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
2393         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
2394         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
2395         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
2396         ifstream_members.cc, instantiations.cc, ios.cc,
2397         ios_base_callbacks.cc, ios_base_members_static-1.tst,
2398         ios_base_members_static.cc, ios_base_storage.cc,
2399         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
2400         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
2401         iostream.cc, iostream_members.cc, istream.cc,
2402         istream_exception.cc, istream_extractor_char.cc,
2403         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
2404         istream_extractor_other-2.tst, istream_extractor_other.cc,
2405         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
2406         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
2407         istream_sentry.cc, istream_unformatted-1.tst,
2408         istream_unformatted-1.txt, istream_unformatted.cc,
2409         istringstream.cc, istringstream_members.cc,
2410         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
2411         ofstream_members.cc, ostream.cc, ostream_exception.cc,
2412         ostream_fail.cc, ostream_inserter_arith.cc,
2413         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
2414         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
2415         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
2416         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
2417         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
2418         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
2419         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
2420         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
2421         wide_stream_objects.cc, istream_extractor_arith/01.cc,
2422         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
2423         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
2424         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
2425         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
2426         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
2427         Split into...
2428         * 27_io/basic_filebuf/1.cc: New.
2429         * 27_io/basic_filebuf/2.cc: New.
2430         * 27_io/basic_filebuf/3.cc: New.
2431         * 27_io/basic_filebuf/4.cc: New.
2432         * 27_io/basic_filebuf/close/char/1.cc: New.
2433         * 27_io/basic_filebuf/close/char/2.cc: New.
2434         * 27_io/basic_filebuf/close/char/3.cc: New.
2435         * 27_io/basic_filebuf/close/char/4879.cc: New.
2436         * 27_io/basic_filebuf/close/char/9964.cc: New.
2437         * 27_io/basic_filebuf/imbue/char/1.cc: New.
2438         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
2439         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
2440         * 27_io/basic_filebuf/is_open/char/1.cc: New.
2441         * 27_io/basic_filebuf/open/char/1.cc: New.
2442         * 27_io/basic_filebuf/open/char/2.cc: New.
2443         * 27_io/basic_filebuf/open/char/3.cc: New.
2444         * 27_io/basic_filebuf/open/char/9507.cc: New.
2445         * 27_io/basic_filebuf/overflow/char/1.cc: New.
2446         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
2447         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
2448         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
2449         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
2450         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
2451         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
2452         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
2453         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
2454         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
2455         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
2456         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
2457         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
2458         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
2459         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
2460         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
2461         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
2462         * 27_io/basic_filebuf/snextc/char/1.cc: New.
2463         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
2464         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
2465         * 27_io/basic_filebuf/sputc/char/1.cc: New.
2466         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
2467         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
2468         * 27_io/basic_filebuf/sputn/char/1.cc: New.
2469         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
2470         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
2471         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
2472         * 27_io/basic_filebuf/sync/char/1057.cc: New.
2473         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
2474         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
2475         * 27_io/basic_fstream/1.cc: New.
2476         * 27_io/basic_fstream/2.cc: New.
2477         * 27_io/basic_fstream/3.cc: New.
2478         * 27_io/basic_fstream/4.cc: New.
2479         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
2480         * 27_io/basic_ifstream/1.cc: New.
2481         * 27_io/basic_ifstream/2.cc: New.
2482         * 27_io/basic_ifstream/3.cc: New.
2483         * 27_io/basic_ifstream/4.cc: New.
2484         * 27_io/basic_ifstream/cons/char/1.cc: New.
2485         * 27_io/basic_ifstream/open/char/1.cc: New.
2486         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
2487         * 27_io/basic_ios/1.cc: New.
2488         * 27_io/basic_ios/2.cc: New.
2489         * 27_io/basic_ios/3.cc: New.
2490         * 27_io/basic_ios/4.cc: New.
2491         * 27_io/basic_ios/clear/char/1.cc: New.
2492         * 27_io/basic_ios/cons/char/1.cc: New.
2493         * 27_io/basic_ios/cons/char/2.cc: New.
2494         * 27_io/basic_ios/cons/char/3.cc: New.
2495         * 27_io/basic_ios/copyfmt/char/1.cc: New.
2496         * 27_io/basic_ios/copyfmt/char/2.cc: New.
2497         * 27_io/basic_ios/exceptions/char/1.cc: New.
2498         * 27_io/basic_ios/locales/char/1.cc: New.
2499         * 27_io/basic_iostream/1.cc: New.
2500         * 27_io/basic_iostream/2.cc: New.
2501         * 27_io/basic_iostream/3.cc: New.
2502         * 27_io/basic_iostream/4.cc: New.
2503         * 27_io/basic_istream/1.cc: New.
2504         * 27_io/basic_istream/2.cc: New.
2505         * 27_io/basic_istream/3.cc: New.
2506         * 27_io/basic_istream/4.cc: New.
2507         * 27_io/basic_istream/exceptions/char/9561.cc: New.
2508         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
2509         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
2510         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
2511         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
2512         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
2513         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
2514         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
2515         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
2516         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
2517         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
2518         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
2519         * 27_io/basic_istream/extractors_character/char/1.cc: New.
2520         * 27_io/basic_istream/extractors_character/char/2.cc: New.
2521         * 27_io/basic_istream/extractors_character/char/3.cc: New.
2522         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
2523         * 27_io/basic_istream/extractors_other/char/1.cc: New.
2524         * 27_io/basic_istream/extractors_other/char/2.cc: New.
2525         * 27_io/basic_istream/extractors_other/char/3.cc: New.
2526         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
2527         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
2528         * 27_io/basic_istream/get/char/1.cc: New.
2529         * 27_io/basic_istream/get/char/2.cc: New.
2530         * 27_io/basic_istream/getline/char/1.cc: New.
2531         * 27_io/basic_istream/getline/char/2.cc: New.
2532         * 27_io/basic_istream/getline/char/3.cc: New.
2533         * 27_io/basic_istream/ignore/char/1.cc: New.
2534         * 27_io/basic_istream/ignore/char/6360.cc: New.
2535         * 27_io/basic_istream/ignore/char/7220.cc: New.
2536         * 27_io/basic_istream/peek/char/1.cc: New.
2537         * 27_io/basic_istream/peek/char/6414.cc: New.
2538         * 27_io/basic_istream/putback/char/1.cc: New.
2539         * 27_io/basic_istream/read/char/1.cc: New.
2540         * 27_io/basic_istream/read/char/2.cc: New.
2541         * 27_io/basic_istream/read/char/3.cc: New.
2542         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
2543         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
2544         * 27_io/basic_istream/readsome/char/8258.cc: New.
2545         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
2546         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
2547         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
2548         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
2549         * 27_io/basic_istream/seekg/char/fstream.cc: New.
2550         * 27_io/basic_istream/seekg/char/sstream.cc: New.
2551         * 27_io/basic_istream/sentry/char/1.cc: New.
2552         * 27_io/basic_istream/sentry/char/2.cc: New.
2553         * 27_io/basic_istream/sentry/char/3.cc: New.
2554         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
2555         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
2556         * 27_io/basic_istream/tellg/char/1.cc: New.
2557         * 27_io/basic_istream/tellg/char/8348.cc: New.
2558         * 27_io/basic_istream/tellg/char/fstream.cc: New.
2559         * 27_io/basic_istream/tellg/char/sstream.cc: New.
2560         * 27_io/basic_istream/ws/char/1.cc: New.
2561         * 27_io/basic_istringstream/1.cc: New.
2562         * 27_io/basic_istringstream/2.cc: New.
2563         * 27_io/basic_istringstream/3.cc: New.
2564         * 27_io/basic_istringstream/4.cc: New.
2565         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
2566         * 27_io/basic_istringstream/str/char/1.cc: New.
2567         * 27_io/basic_ofstream/1.cc: New.
2568         * 27_io/basic_ofstream/2.cc: New.
2569         * 27_io/basic_ofstream/3.cc: New.
2570         * 27_io/basic_ofstream/4.cc: New.
2571         * 27_io/basic_ofstream/cons/char/2.cc: New.
2572         * 27_io/basic_ofstream/open/char/1.cc: New.
2573         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
2574         * 27_io/basic_ostream/1.cc: New.
2575         * 27_io/basic_ostream/2.cc: New.
2576         * 27_io/basic_ostream/3.cc: New.
2577         * 27_io/basic_ostream/4.cc: New.
2578         * 27_io/basic_ostream/cons/char/9827.cc: New.
2579         * 27_io/basic_ostream/endl/char/1.cc: New.
2580         * 27_io/basic_ostream/ends/char/1.cc: New.
2581         * 27_io/basic_ostream/ends/char/2.cc: New.
2582         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
2583         * 27_io/basic_ostream/flush/char/1.cc: New.
2584         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
2585         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
2586         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
2587         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
2588         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
2589         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
2590         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
2591         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
2592         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
2593         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
2594         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
2595         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
2596         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
2597         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
2598         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
2599         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
2600         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
2601         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
2602         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
2603         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
2604         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
2605         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
2606         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
2607         * 27_io/basic_ostream/sentry/char/1.cc: New.
2608         * 27_io/basic_ostream/sentry/char/2.cc: New.
2609         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
2610         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
2611         * 27_io/basic_ostream/tellp/char/1.cc: New.
2612         * 27_io/basic_ostream/tellp/char/2.cc: New.
2613         * 27_io/basic_ostringstream/1.cc: New.
2614         * 27_io/basic_ostringstream/2.cc: New.
2615         * 27_io/basic_ostringstream/3.cc: New.
2616         * 27_io/basic_ostringstream/4.cc: New.
2617         * 27_io/basic_ostringstream/cons/char/3.cc: New.
2618         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
2619         * 27_io/basic_ostringstream/str/char/1.cc: New.
2620         * 27_io/basic_ostringstream/str/char/2.cc: New.
2621         * 27_io/basic_streambuf/1.cc: New.
2622         * 27_io/basic_streambuf/2.cc: New.
2623         * 27_io/basic_streambuf/3.cc: New.
2624         * 27_io/basic_streambuf/cons/char/1.cc: New.
2625         * 27_io/basic_streambuf/imbue/char/1.cc: New.
2626         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
2627         * 27_io/basic_streambuf/overflow/char/1.cc: New.
2628         * 27_io/basic_streambuf/overflow/char/2.cc: New.
2629         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
2630         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
2631         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
2632         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
2633         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
2634         * 27_io/basic_streambuf/sputn/char/1.cc: New.
2635         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
2636         * 27_io/basic_streambuf/sync/char/1057.cc: New.
2637         * 27_io/basic_stringbuf/1.cc: New.
2638         * 27_io/basic_stringbuf/2.cc: New.
2639         * 27_io/basic_stringbuf/3.cc: New.
2640         * 27_io/basic_stringbuf/4.cc: New.
2641         * 27_io/basic_stringbuf/5.cc: New.
2642         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
2643         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
2644         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
2645         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
2646         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
2647         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
2648         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
2649         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
2650         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
2651         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
2652         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
2653         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
2654         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
2655         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
2656         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
2657         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
2658         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
2659         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
2660         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
2661         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
2662         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
2663         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
2664         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
2665         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
2666         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
2667         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
2668         * 27_io/basic_stringbuf/str/char/1.cc: New.
2669         * 27_io/basic_stringbuf/str/char/2.cc: New.
2670         * 27_io/basic_stringbuf/str/char/3.cc: New.
2671         * 27_io/basic_stringbuf/str/char/3955.cc: New.
2672         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
2673         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
2674         * 27_io/basic_stringstream/1.cc: New.
2675         * 27_io/basic_stringstream/2.cc: New.
2676         * 27_io/basic_stringstream/3.cc: New.
2677         * 27_io/basic_stringstream/4.cc: New.
2678         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
2679         * 27_io/basic_stringstream/str/char/1.cc: New.
2680         * 27_io/basic_stringstream/str/char/2.cc: New.
2681         * 27_io/basic_stringstream/str/char/3.cc: New.
2682         * 27_io/basic_stringstream/str/char/4.cc: New.
2683         * 27_io/fpos/1.cc: New.
2684         * 27_io/fpos/2.cc: New.
2685         * 27_io/fpos/3.cc: New.
2686         * 27_io/ios_base/callbacks/1.cc: New.
2687         * 27_io/ios_base/state/1.cc: New.
2688         * 27_io/ios_base/storage/1.cc: New.
2689         * 27_io/ios_base/storage/2.cc: New.
2690         * 27_io/ios_base/storage/3.cc: New.
2691         * 27_io/ios_base/sync_with_stdio/1.cc: New.
2692         * 27_io/ios_base/sync_with_stdio/2.cc: New.
2693         * 27_io/manipulators/adjustfield/char/1.cc: New.
2694         * 27_io/manipulators/adjustfield/char/2.cc: New.
2695         * 27_io/manipulators/basefield/char/1.cc: New.
2696         * 27_io/manipulators/standard/char/1.cc: New.
2697         * 27_io/manipulators/standard/char/2.cc: New.
2698         * 27_io/objects/char/1.cc: New.
2699         * 27_io/objects/char/2.cc: New.
2700         * 27_io/objects/char/2523-1_xin.cc: New.
2701         * 27_io/objects/char/2523-1_xin.in: New.
2702         * 27_io/objects/char/2523-2_xin.cc: New.
2703         * 27_io/objects/char/2523-2_xin.in: New.
2704         * 27_io/objects/char/3045.cc: New.
2705         * 27_io/objects/char/3647.cc: New.
2706         * 27_io/objects/char/3_xin.cc: New.
2707         * 27_io/objects/char/3_xin.in: New.
2708         * 27_io/objects/char/4_xin.cc: New.
2709         * 27_io/objects/char/4_xin.in: New.
2710         * 27_io/objects/char/5268.cc: New.
2711         * 27_io/objects/char/5280_xin.cc: New.
2712         * 27_io/objects/char/5280_xin.in: New.
2713         * 27_io/objects/char/6548_xin.cc: New.
2714         * 27_io/objects/char/6548_xin.in: New.
2715         * 27_io/objects/char/6648-1_xin.cc: New.
2716         * 27_io/objects/char/6648-1_xin.in: New.
2717         * 27_io/objects/char/6648-2_xin.cc: New.
2718         * 27_io/objects/char/6648-2_xin.in: New.
2719         * 27_io/objects/char/7744_xin.cc: New.
2720         * 27_io/objects/char/7744_xin.in: New.
2721         * 27_io/objects/wchar_t/1.cc: New.
2722         * 27_io/types/1.cc: New.
2723         * 27_io/types/2.cc: New.
2724         * data/filebuf_members-1.tst: New.
2725         * data/filebuf_members-1.txt: New.
2726         * data/filebuf_virtuals-1.tst: New.
2727         * data/filebuf_virtuals-1.txt: New.
2728         * data/filebuf_virtuals-2.tst: New.
2729         * data/filebuf_virtuals-3.tst: New.
2730         * data/ifstream_members-1.tst: New.
2731         * data/ifstream_members-1.txt: New.
2732         * data/ios_base_members_static-1.tst: New.
2733         * data/istream_extractor_other-1.tst: New.
2734         * data/istream_extractor_other-1.txt: New.
2735         * data/istream_extractor_other-2.tst: New.
2736         * data/istream_seeks-1.tst: New.
2737         * data/istream_seeks-1.txt: New.
2738         * data/istream_seeks-2.tst: New.
2739         * data/istream_seeks-3.tst: New.
2740         * data/istream_unformatted-1.tst: New.
2741         * data/istream_unformatted-1.txt: New.
2742         * data/ofstream_members-1.tst: New.
2743         * data/ostream_inserter_char-1.tst: New.
2744         * data/ostream_inserter_char-1.txt: New.
2745         * data/ostream_inserter_other-1.tst: New.
2746         * data/ostream_inserter_other-2.tst: New.
2747         * data/ostream_seeks-1.tst: New.
2749 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
2751         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
2752         requirement that __mode must be strict input or output.
2754         * include/std/std_streambuf.h (basic_streambuf::setp): Set
2755         _M_out_lim.
2757         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
2758         output string shouldn't core.
2759         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
2760         type.
2761         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
2763         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
2764         zero.
2766 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
2768         * testsuite/data: New directory.
2769         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
2770         to copy files from the testsuite data directory.
2771         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
2772         testfiles containing _xin, which now means this is an interactive
2773         test and should be run with the interactive dejagnu hooks.
2774         * testsuite/Makefile.am: Remove testsuite_* files.
2775         * testsuite/Makefile.in: Regenerate.
2777 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
2779         * docs/html/install.html: Document complete list of locales
2780         required by test suite.  Document procedure for installing
2781         said locales under Debian.  Solicit instructions for other
2782         operating systems.
2784 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
2786         * include/bits/sstream.tcc (overflow): Make sure operands of min
2787         and max have the same type.
2789 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
2791         PR libstdc++/10276
2792         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
2793         initialization.
2795 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
2797         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
2798         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
2799         Don't set _M_out_end.
2800         (basic_filebuf::overflow): Replace _M_out_buf_size() with
2801         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
2802         * include/bits/sstream.tcc (basic_stringbuf::overflow):
2803         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
2804         * include/bits/streambuf.tcc (basic_streambuf::sputc):
2805         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
2806         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
2807         _M_out_end - _M_out_cur.
2808         (__copy_streambufs): Likewise.
2809         * include/std/std_fstream.h (_M_set_determinate): Set
2810         _M_out_end here.
2812 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
2814         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
2815         _M_convert_to_external, _M_really_overflow, seekoff): Fix
2816         test for synced buffer.
2817         * include/std/std_fstream.h (sync): Likewise.
2818         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
2819         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
2821 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
2823         * include/std/std_sstream.h (basic_istringstream): Adjust
2824         initialization.
2825         (basic_ostringstream): Same.
2826         (basic_stringstream): Same.
2827         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
2828         (basic_ofstream): Same.
2829         (basic_fstream): Same.
2830         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
2831         that does not call init.
2832         * include/std/std_istream.h (basic_istream): Same.
2833         (basic_iostream): Construct istream, ostream uninitialized, use
2834         init to initialize just once. Add protected ctor that does not
2835         call init.
2837 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
2838             Nathan Myers  <ncm@cantrip.org>
2840         PR libstdc++/9533
2841         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
2842         call underflow().
2843         (basic_filebuf<>::showmanyc): Use the information provided
2844         by codecvt and __basic_file<>::showmanyc_helper to implement
2845         a non-trivial showmanyc.
2846         * config/io/basic_file_stdio.h
2847         (__basic_file<>::showmanyc_helper): New, declare.
2848         * config/io/basic_file_stdio.cc
2849         (__basic_file<>::showmanyc_helper): Define.
2850         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
2851         (__basic_file<char>::open): Don't call fcntl().
2852         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
2853         GLIBCPP_CHECK_POLL): New macros.
2854         * configure.in: Call here.
2855         * acconfig.h: Add #undefs for the corresponding symbols.
2856         * aclocal.m4: Regenerate.
2857         * configure: Regenerate.
2858         * config.h.in: Regenerate.
2860 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
2862         * config/linker-map.gnu: Remove string export restrictions.
2864 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
2866         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
2867         find_first_of, find_last_of and find_last_not_of tests.
2868         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
2869         tests here, new file.
2870         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
2871         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
2872         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
2873         wchar_t find_first_of tests here, new file.
2874         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
2875         tests here.
2876         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
2877         tests here.
2878         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
2879         wchar_t find_last_of tests here.
2880         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
2881         wchar_t find_last_not_of tests here.
2883 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
2885         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
2886         Correct return value.
2888 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
2890         PR libstdc++/5730
2891         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
2892         * include/std/std_complex.h (norm):  Use faster,
2893         less accurate computation for builtin float types under --fast-math.
2895 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
2897         * testsuite/testsuite_hooks.h: Fix warning nits.
2899 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
2901         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
2902         Only .set mips2 for the o32 ABI.
2904 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
2906         * testsuite/21_strings/char_traits/requirements/char/1.cc:
2907         Test char not wchar_t.
2909 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
2911         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
2912         Correct size, taking into account sizeof(wchar_t).
2914 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
2916         Reshuffle 21_strings testsuite.
2917         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
2918         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
2919         element_access.cc, operations.cc, char_traits_requirements.cc,
2920         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
2921         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
2922         wchar_t tests as follows.
2923         * 21_strings/basic_string/append/char/1.cc: New.
2924         * 21_strings/basic_string/append/wchar_t/1.cc: New.
2925         * 21_strings/basic_string/assign/char/1.cc: New.
2926         * 21_strings/basic_string/assign/char/2.cc: New.
2927         * 21_strings/basic_string/assign/char/3.cc: New.
2928         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
2929         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
2930         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
2931         * 21_strings/basic_string/capacity/1.cc: New.
2932         * 21_strings/basic_string/capacity/char/1.cc: New.
2933         * 21_strings/basic_string/capacity/char/2.cc: New.
2934         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
2935         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
2936         * 21_strings/basic_string/compare/char/1.cc: New.
2937         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
2938         * 21_strings/basic_string/cons/char/1.cc: New.
2939         * 21_strings/basic_string/cons/char/2.cc: New.
2940         * 21_strings/basic_string/cons/char/3.cc: New.
2941         * 21_strings/basic_string/cons/char/4.cc: New.
2942         * 21_strings/basic_string/cons/char/5.cc: New.
2943         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
2944         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
2945         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
2946         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
2947         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
2948         * 21_strings/basic_string/element_access/char/1.cc: New.
2949         * 21_strings/basic_string/element_access/char/2.cc: New.
2950         * 21_strings/basic_string/element_access/char/3.cc: New.
2951         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
2952         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
2953         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
2954         * 21_strings/basic_string/find/char/1.cc: New.
2955         * 21_strings/basic_string/find/wchar_t/1.cc: New.
2956         * 21_strings/basic_string/insert/char/1.cc: New.
2957         * 21_strings/basic_string/insert/char/2.cc: New.
2958         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
2959         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
2960         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
2961         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
2962         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
2963         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
2964         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
2965         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
2966         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
2967         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
2968         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
2969         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
2970         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
2971         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
2972         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
2973         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
2974         * 21_strings/basic_string/operators/char/1.cc: New.
2975         * 21_strings/basic_string/operators/char/2.cc: New.
2976         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
2977         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
2978         * 21_strings/basic_string/replace/char/1.cc: New.
2979         * 21_strings/basic_string/replace/char/2.cc: New.
2980         * 21_strings/basic_string/replace/char/3.cc: New.
2981         * 21_strings/basic_string/replace/char/4.cc: New.
2982         * 21_strings/basic_string/replace/char/5.cc: New.
2983         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
2984         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
2985         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
2986         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
2987         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
2988         * 21_strings/basic_string/rfind/char/1.cc: New.
2989         * 21_strings/basic_string/rfind/char/2.cc: New.
2990         * 21_strings/basic_string/rfind/char/3.cc: New.
2991         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
2992         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
2993         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
2994         * 21_strings/basic_string/substr/char/1.cc: New.
2995         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
2996         * 21_strings/c_strings/char/1.cc: New.
2997         * 21_strings/c_strings/char/2.cc: New.
2998         * 21_strings/c_strings/wchar_t/1.cc: New.
2999         * 21_strings/c_strings/wchar_t/2.cc: New.
3000         * 21_strings/char_traits/requirements/char/1.cc: New.
3001         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
3002         * 21_strings/char_traits/typedefs/char/1.cc: New.
3004 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
3005             Petur Runolfsson  <peturr02@ru.is>
3007         PR libstdc++/10097
3008         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3009         basic_filebuf<wchar_t>::_M_underflow_common):
3010         if (gptr() < egptr()) return *gptr().
3011         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
3013         * testsuite/27_io/filebuf_members.cc (test_04): Minor
3014         changes: unlink fifo before making it, fix spelling error.
3016 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
3018         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
3019         * testsuite/Makefile.in: Regenerate.
3020         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
3021         Cleanups.
3023 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
3025         PR libstdc++/9964
3026         * include/bits/fstream.tcc (basic_filebuf::close):
3027         Always close file, even when write fails.
3028         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
3030 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
3032         * libsupc++/Makefile.am (C_COMPILE): Remove.
3033         (LTCOMPILE): Likewise.
3034         * libsupc++/Makefile.in: Regenerate.
3036 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
3038         * testsuite/23_containers/bitset_members.cc: Add test variable.
3039         * testsuite/23_containers/map_insert.cc: Same.
3040         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
3041         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
3042         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3043         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3044         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3045         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
3046         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
3047         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3048         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3049         * testsuite/27_io/istream_exception.cc: Same.
3050         * testsuite/27_io/filebuf_virtuals.cc: Same.
3051         * testsuite/27_io/stringbuf_virtuals.cc: Same.
3052         * testsuite/27_io/ostream_inserter_arith.cc: Same.
3053         * testsuite/26_numerics/valarray_operators.cc: Same.
3054         * testsuite/26_numerics/slice.cc: Same.
3055         * testsuite/26_numerics/slice_array_assignment.cc: Same.
3056         * testsuite/24_iterators/istream_iterator.cc: Same.
3057         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
3059 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
3061         PR libstdc++/9581
3062         PR libstdc++/9870
3063         * config/locale/generic/ctype_members.cc,
3064         * config/locale/gnu/ctype_members.cc
3065         (ctype<wchar_t>::do_widen(char)):  Cast argument to
3066         unsigned char before passing to btowc.
3067         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
3068         Convert characters with btowc instead of mbsrtowcs.
3069         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
3070         char, char*):
3071         Convert characters with wctob instead of wcsrtombs.
3072         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
3073         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
3074         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
3076 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
3078         * include/stdc++.h: New.
3079         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
3080         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
3081         * include/Makefile.in: Regenerate.
3082         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
3083         (--cxxflags): Put -g -O2 here.
3084         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
3086 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
3088         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
3089         missing named locale.
3091 2003-03-14  Andreas Schwab  <schwab@suse.de>
3093         * configure.in: Only append to makefiles that are newly created to
3094         avoid multiple multi-do/multi-clean rules.
3095         * configure: Rebuilt.
3097 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
3099         * docs/html/configopts.html, docs/html/documentation.html,
3100         docs/html/explanations.html, docs/html/install.html,
3101         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
3102         invalid XHTML and make page header style consistent.
3104 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
3106         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
3107         * docs/html/faq/index.txt: Regenerate.
3108         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
3110 2003-03-12  Andreas Schwab  <schwab@suse.de>
3112         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
3113         glibcpp_toolexeclibdir.
3114         * aclocal.m4, configure: Rebuilt.
3116 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
3118         * docs/html/faq/index.html: Update text about location of headers.
3119         * docs/html/faq/index.txt: Regenerate.
3121 2003-03-11  Carlo Wood  <carlo@alinoe.com>
3123         * include/bits/demangle.h: Prepend accessors of
3124         class qualifier with 'get_' in order to fix warnings
3125         when compiling with -Wshadow.
3127 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
3129         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
3130         when so installed.
3131         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
3133         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
3134         report lack of setenv().
3136 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
3138         * config/io/basic_file_stdio.cc: include <unistd.h>.
3140 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
3141             Nathan Myers  <ncm@cantrip.org>
3143         PR libstdc++/7744
3144         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
3145         seekoff, seekpos): Add a boolean parameter __stdio.
3146         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
3147         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
3148         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
3149         respectively).
3150         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
3151         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
3152         * include/std/std_fstream.h (sync): Likewise.
3153         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
3154         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
3155         libstdc++/8399 commit involving isatty(0).
3156         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
3157         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
3158         * configure.in: Remove call.
3159         * aclocal.m4: Regenerate.
3160         * config.h.in: Regenerate.
3161         * configure: Regenerate.
3162         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
3164 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
3166         PR libstdc++/9988
3167         * include/bits/fstream.tcc (overflow): don't write EOF to file.
3168         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
3170 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
3172         PR libstdc++/9561
3173         * include/bits/basic_ios.h (_M_setstate): New.
3174         * include/bits/ostream.tcc (operator<<): Use it.
3175         * include/bits/istream.tcc (operator>>): Use it.
3176         * include/std/std_ostream.h (operator<<): Make friends.
3177         * include/std/std_istream.h (operator>>): Make friends.
3178         * testsuite/27_io/ostream_exception.cc,
3179         testsuite/27_io/istream_exception.cc: New tests.
3181 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3183         * include/bits/locale_facets.tcc: Fix typo.
3185 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
3187         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
3189         * config/locale/generic/c_locale.cc
3190         (locale::facet::_S_create_c_locale): Throw runtime exception when
3191         unsupported language is specified.
3192         * testsuite/testsuite_hooks.h
3193         (run_test_wrapped_generic_locale_exception_catcher): New function.
3194         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
3195         Suppress runtime exception thrown by generic implementation.
3196         (run_tests_wrapped_env): Likewise.
3197         (run_test_wrapped_generic_locale_exception_catcher): New function.
3198         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
3199         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
3200         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
3201         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
3202         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
3203         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
3204         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
3205         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
3206         * testsuite/22_locale/facet/2.cc: New test wrap.
3207         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
3208         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
3209         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
3210         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
3211         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
3212         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
3213         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
3214         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
3215         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
3216         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
3217         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
3218         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
3219         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
3220         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
3221         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
3222         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
3223         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
3224         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
3225         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
3226         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
3227         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
3228         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
3229         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
3230         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
3231         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
3232         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
3233         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
3234         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
3235         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
3236         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
3237         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
3238         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
3239         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
3240         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
3241         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
3242         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
3243         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
3244         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
3245         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
3246         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
3247         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
3248         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
3249         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
3250         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
3251         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
3252         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
3253         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
3254         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
3255         * testsuite/27_io/ios_members.cc: New test wrap.
3256         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
3257         New test wrap.
3258         * testsuite/27_io/streambuf_members.cc: New test wrap.
3259         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
3261 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
3262             Petur Runolfsson  <peturr02@ru.is>
3264         PR libstdc++/9424
3265         * include/bits/streambuf.tcc (__copy_streambufs): Use
3266         sgetn-sputn only when sputn cannot fail, otherwise fall back
3267         to safe snextc-sputc.
3268         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
3270 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
3272         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
3273         locale cache for truename and falsename.
3275 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
3277         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
3278         _M_word_size initialization.
3280 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
3282         * include/bits/fstream.tcc (_M_convert_to_external):
3283         Set __elen to zero if codecvt::out eventually fails.
3285 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
3287         PR libstdc++/9182
3288         * include/bits/fstream.tcc (_M_really_overflow): Check
3289         for _M_convert_to_external possible failures.
3290         * include/std/std_fstream.h (sync): Check _M_really_overflow
3291         return value and return -1 in case of failure.
3292         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
3294 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
3296         PR libstdc++/9826
3297         * include/bits/istream.tcc (operator>>(_CharT*),
3298         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
3299         * testsuite/27_io/stringstream.cc (test02): Add.
3301         * include/bits/istream.tcc (operator>>(_CharT*)):
3302         Assign a char_type to *__s.
3304 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
3306         PR libstdc++/9817
3307         * include/bits/locale_facets.tcc
3308         (collate::do_compare, collate::do_transform):
3309         Handle nul characters in input.
3310         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
3311         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
3312         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
3313         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
3315 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
3317         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
3318         sputn fails.
3319         * testsuite/27_io/ostream_fail.cc: New test.
3321 2003-03-07  Matthias Klose  <doko@debian.org>
3323         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
3324         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
3325         * Makefile.in: Regenerate.
3326         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
3327         of gxx_include_dir.
3328         AM_MAKEFLAGS: Pass gxx_include_dir.
3329         * libsupc++/Makefile.in: Regenerate.
3331 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
3333         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
3334         mask.  Test setting small-numbered pword and iword slots.  Test
3335         behavior at limit of numeric_limits::max.  Check that values are
3336         still good after failures.
3338 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
3340         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
3341         (ios_base::ios_base): Set _M_word, _M_word_size.
3342         (ios_base::~ios_base): Remove redundant test.
3343         * testsuite/27_io/ios_base_storage.cc (test03): New.
3345 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
3347         * src/strstream.cc, include/bits/basic_string.tcc: Remove
3348         incorrect whitespace added in my previous change.
3350 2003-03-05  Carlo Wood  <carlo@alinoe.com>
3352         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
3353         _S_initialized() in order to allow debugging libraries to detect
3354         when the std streams are initialized from an overloaded operator
3355         new.
3357 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
3359         * libsupc++/demangle.h: Move to..
3360         * include/bits/demangle.h: ...here.
3361         * src/demangle.cc: Adjust include.
3362         * include/Makefile.am (bits_headers): Add.
3363         * include/Makefile.in: Regenerate.
3365 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3367         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
3369         * config/linker-map.gnu: Filter typeinfo and vtable info.
3371 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
3373         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
3374         new failure.  Throw exception if badbit and exception mask when ix
3375         >= numeric_limits<int>::max().
3377 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
3379         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
3380         min and max have the same type.
3381         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
3383 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3385         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
3386         * include/Makefile.in: Regenerate.
3388 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
3390         * testsuite/abi_check.cc (report_symbol_info): Add version info.
3392         * config/linker-map.gnu: Hide more stuff.
3393         * include/Makefile.am: Cleanups.
3394         * include/Makefile.in: Regenerate.
3396 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
3398         * config/locale/generic/messages_members.h (messages::messages):
3399         Remove name from unused parameter.
3401 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
3403         * src/Makefile.am (sources): Add demangle.cc.
3404         (demangle.o): Add.
3405         (demangle.lo): Add.
3406         * src/Makefile.in: Regenerate.
3407         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
3408         * libsupc++/Makefile.in: Regenerate.
3410         * testsuite/testsuite_hooks.h
3411         (__gnu_cxx_test::verify_demangle): New.
3412         * testsuite/testsuite_hooks.cc: Define.
3414 2003-02-27  Carlo Wood  <carlo@alinoe.com>
3416         * src/demangle.cc: New.
3417         * libsupc++/demangle.h: New.
3419 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
3420             Carlo Wood  <carlo@alinoe.com>
3422         * testsuite/demangle/abi_examples/01.cc: New.
3423         * testsuite/demangle/abi_examples/02.cc: New.
3424         * testsuite/demangle/abi_examples/03.cc: New.
3425         * testsuite/demangle/abi_examples/04.cc: New.
3426         * testsuite/demangle/abi_examples/05.cc: New.
3427         * testsuite/demangle/abi_examples/06.cc: New.
3428         * testsuite/demangle/abi_examples/07.cc: New.
3429         * testsuite/demangle/abi_examples/08.cc: New.
3430         * testsuite/demangle/abi_examples/09.cc: New.
3431         * testsuite/demangle/abi_examples/10.cc: New.
3432         * testsuite/demangle/abi_examples/11.cc: New.
3433         * testsuite/demangle/abi_examples/12.cc: New.
3434         * testsuite/demangle/abi_examples/13.cc: New.
3435         * testsuite/demangle/abi_examples/14.cc: New.
3436         * testsuite/demangle/abi_examples/15.cc: New.
3437         * testsuite/demangle/abi_examples/16.cc: New.
3438         * testsuite/demangle/abi_examples/17.cc: New.
3439         * testsuite/demangle/abi_examples/18.cc: New.
3440         * testsuite/demangle/abi_examples/19.cc: New.
3441         * testsuite/demangle/abi_examples/20.cc: New.
3442         * testsuite/demangle/abi_examples/21.cc: New.
3443         * testsuite/demangle/abi_examples/22.cc: New.
3444         * testsuite/demangle/abi_examples/23.cc: New.
3445         * testsuite/demangle/abi_examples/24.cc: New.
3446         * testsuite/demangle/abi_examples/25.cc: New.
3447         * testsuite/demangle/abi_examples/26.cc: New.
3448         * testsuite/demangle/abi_text/01.cc: New.
3449         * testsuite/demangle/abi_text/02.cc: New.
3450         * testsuite/demangle/abi_text/03.cc: New.
3451         * testsuite/demangle/abi_text/04.cc: New.
3452         * testsuite/demangle/abi_text/05.cc: New.
3453         * testsuite/demangle/abi_text/06.cc: New.
3454         * testsuite/demangle/abi_text/07.cc: New.
3455         * testsuite/demangle/abi_text/08.cc: New.
3456         * testsuite/demangle/abi_text/09.cc: New.
3457         * testsuite/demangle/abi_text/10.cc: New.
3458         * testsuite/demangle/abi_text/11.cc: New.
3459         * testsuite/demangle/abi_text/12.cc: New.
3460         * testsuite/demangle/abi_text/13.cc: New.
3461         * testsuite/demangle/abi_text/14.cc: New.
3462         * testsuite/demangle/regression/3111-1.cc: New.
3463         * testsuite/demangle/regression/3111-2.cc: New.
3464         * testsuite/demangle/regression/7986-01.cc: New.
3465         * testsuite/demangle/regression/7986-02.cc: New.
3466         * testsuite/demangle/regression/7986-03.cc: New.
3467         * testsuite/demangle/regression/7986-04.cc: New.
3468         * testsuite/demangle/regression/7986-05.cc: New.
3469         * testsuite/demangle/regression/7986-06.cc: New.
3470         * testsuite/demangle/regression/7986-07.cc: New.
3471         * testsuite/demangle/regression/7986-08.cc: New.
3472         * testsuite/demangle/regression/7986-09.cc: New.
3473         * testsuite/demangle/regression/7986-10.cc: New.
3474         * testsuite/demangle/regression/7986-11.cc: New.
3475         * testsuite/demangle/regression/7986-12.cc: New.
3476         * testsuite/demangle/regression/7986.cc: New.
3477         * testsuite/demangle/regression/8897.cc: New.
3478         * testsuite/demangle/regression/cw-01.cc: New.
3479         * testsuite/demangle/regression/cw-02.cc: New.
3480         * testsuite/demangle/regression/cw-03.cc: New.
3481         * testsuite/demangle/regression/cw-04.cc: New.
3482         * testsuite/demangle/regression/cw-05.cc: New.
3483         * testsuite/demangle/regression/cw-06.cc: New.
3484         * testsuite/demangle/regression/cw-07.cc: New.
3485         * testsuite/demangle/regression/cw-08.cc: New.
3486         * testsuite/demangle/regression/cw-09.cc: New.
3487         * testsuite/demangle/regression/cw-10.cc: New.
3488         * testsuite/demangle/regression/cw-11.cc: New.
3489         * testsuite/demangle/regression/cw-12.cc: New.
3490         * testsuite/demangle/regression/cw-13.cc: New.
3491         * testsuite/demangle/regression/cw-14.cc: New.
3492         * testsuite/demangle/regression/old.cc: New.
3494 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
3496         * docs/doxygen/Intro.3:  Update with new (proper) names.
3497         * docs/doxygen/TODO:  Update.
3498         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
3499         Fake entries for standard typedefs.
3500         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
3501         * docs/html/documentation.html:  Top-level man page is now called
3502         C++Intro.
3503         * include/std/std_limits.h:  Doxygenate.
3505 2003-02-25  Scott Snyder  <snyder@fnal.gov>
3507         PR libstdc++/9811
3508         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
3509         Correct documentation.
3510         * include/bits/stl_multimap.h (lower_bound, upper_bound,
3511         equal_range): Likewise.
3513 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
3515         PR libstdc++/9825
3516         * src/fstream.cc
3517         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
3518         __bump is true (uflow), always increment the read pointer
3519         (_M_in_cur) before returning successfully.
3520         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
3522 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
3523             Nathan Myers <ncm@cantrip.org>
3525         PR libstdc++/9404, PR libstdc++/9701 (partial)
3526         (aka pptr == epptr implies overflow)
3527         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3528         Consistently, _M_out_end points to the end of the buffer just
3529         created.
3530         (overflow): Tweak to use _M_out_buf_size().
3531         (_M_convert_to_external): The role of the old _M_out_end is
3532         now played by _M_out_lim.
3533         (_M_really_overflow): Likewise.
3534         (seekoff): Likewise.
3535         (setbuf): _M_out_end points to the end of the external buffer.
3536         * include/bits/sstream.tcc (overflow): Rewrote, taking into
3537         account the resolution of DR 169 (TC).
3538         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
3539         (seekpos): Use _M_string.capacity(); tweak.
3540         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
3541         * include/std/std_fstream.h (sync): The role of the old
3542         _M_out_end is now played by _M_out_lim.
3543         (_M_set_indeterminate): Use _M_set_determinate.
3544         (_M_set_determinate): _M_out_end is now _M_out_lim.
3545         (_M_is_indeterminate): Likewise.
3546         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
3547         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
3548         which have the information readily available as _M_string.capacity();
3549         for ate and app modes, pass the string size to _M_really_sync.
3550         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
3551         point to the end of the buffer (i.e., epptr) and to the string end,
3552         respectively.
3553         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
3554         which points to the right limit of the used put area.
3555         (_M_out_cur_move): The role of the old _M_out_end is now played
3556         by _M_out_lim.
3557         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
3558         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
3559         of the standard.
3560         (basic_streambuf()): Initialize _M_out_lim too.
3561         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
3562         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
3563         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
3565 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
3567         * testsuite/27_io/ios_base_storage.cc (main): Call
3568         set_memory_limits.
3570 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
3572         * include/bits/locale_facets.tcc (_M_convert_float): Replace
3573         numpunct facet accesses with data from __locale_cache.
3575 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
3577         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
3578         * docs/html/faq/index.txt:  Regenerate.
3580 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
3582         * config/linker-map.gnu:  Also export locking symbols needed for the
3583         generic atomicity.h case.
3585 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
3587         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
3588         config.status.
3589         * configure: Rebuilt.
3591 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
3593         * include/bits/sstream.tcc (overflow): According to
3594         27.7.1.3, p5, actual output is performed by sputc(c).
3596 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
3598         PR libstdc++/9582
3599         * include/bits/stl_alloc.h:  Remove all traces of assert().
3601 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
3603         * include/std/std_sstream.h (str()): the size of the
3604         current string may be different from the initial one
3605         whenever _M_out_end > _M_out_beg.
3606         * testsuite/27_io/stringbuf_members.cc (test07): Add.
3608 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
3610         PR libstdc++/9582
3611         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
3613 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
3615         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
3616         * testsuite/27_io/ios_members.cc (test03): New.
3618 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
3620         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
3621         (basic_ios::_M_cache_facets): Move into above.
3622         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
3623         cache.
3624         (basic_ios::imbue): Force locale cache to be built.
3625         (basic_ios::_M_init): Create and initialize locale cache.
3626         * include/bits/ios_base.h (__locale_cache_base): Declare.
3627         (ios_base::_M_locale_cache): New.
3628         (ios_base::_M_cache): Define.
3629         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
3630         _S_end.
3631         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
3632         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
3633         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
3634         cache literal string, grouping flag, thousands separator.
3635         (__locale_cache<_CharT>::__locale_cache): New.
3636         (__locale_cache<_CharT>::_M_init): New.
3637         * src/ios.cc: Clear _M_locale_cache in constructor.
3638         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
3639         New.
3641 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
3643         * src/locale-inst.cc: Do not include <cassert>.
3644         * src/locale.cc: Likewise.
3646 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
3648         PR libstdc++/9580
3649         * include/std/std_fstream.h: Declare underflow and uflow
3650         specializations, change generic definitions to do nothing.
3651         * src/fstream.cc: Add underflow and uflow specializations.
3653 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
3655         PR libstdc++/9169
3656         * include/bits/fstream.tcc (_M_convert_to_external):
3657         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
3658         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
3660 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
3662         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
3663         * include/bits/basic_ios.tcc: Guard use of extern template.
3664         * include/std/std_iomanip.h: Same.
3665         * include/bits/streambuf.tcc: Same.
3666         * include/bits/stl_alloc.h: Same.
3667         * include/bits/locale_facets.tcc: Same.
3668         * include/bits/ostream.tcc: Same.
3669         * include/bits/istream.tcc: Same.
3670         * include/bits/fstream.tcc: Same.
3671         * include/bits/basic_string.tcc: Same.
3673 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
3675         * include/bits/ostream.tcc (sentry::sentry): Improve
3676         performance-wise the fix for libstdc++/9563.
3678 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
3680         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
3681         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
3682         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
3683         when we don't have static mutex initialization.
3684         (__exchange_and_add):  Use _Atomic_add_mutex_once.
3685         * src/misc-inst.cc:  Definitions of all the above.
3687 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
3689         PR libstdc++/9563
3690         * include/bits/ostream.tcc (sentry::sentry): Check
3691         the state of the stream after the preparation.
3692         * testsuite/27_io/ostream_sentry.cc (test02): Add.
3694 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
3696         * include/Makefile.am (stamp-std-precompile): Add rule.
3697         * include/Makefile.in: Regenerated.
3699 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
3700            Benjamin Kosnik  <benjamin@redhat.com>
3702         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
3703         Add indexes into this array.
3704         (__num_base::_S_atoms): To _S_atoms_in.
3705         (num_put::_M_insert): Rename to _M_pad.
3706         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
3707         (num_put::_M_widen_int): Rename to _M_group_int.
3708         (num_put::_M_widen_float): Rename to _M_group_float.
3709         * include/bits/locale_facets.tcc (__int_to_char): New inline
3710         function and adapter functions.
3711         (num_put::_M_group_int): Streamline.
3712         (num_put::_M_group_float): Streamline.
3713         (num_put::_M_convert_int): Remove unused parameter names. Choose
3714         large enough buffer for text.  Use __int_to_char instead of
3715         __convert_from_v.  Formatted text is now at the end of the buffer.
3716         (num_put::_M_convert_float): Preliminary fixups.
3717         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
3718         (__int_to_char<unsigned long long>): Same.
3719         (__int_to_char<char, unsigned long>): New.
3720         (__int_to_char<char, unsigned long long>): New.
3721         (__int_to_char<wchar_t, unsigned long>): New.
3722         (__int_to_char<wchar_t, unsigned long long>): New.
3724 2003-02-11  Scott Snyder  <snyder@fnal.gov>
3726         PR libstdc++/9659
3727         * include/bits/fstream.tcc (seekoff): Avoid operator+
3728         for pos_type.
3730 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
3732         PR libstdc++/9320
3733         * include/ext/stdio_filebuf.h
3734         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
3735         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
3736         Change to take a __size parameter of type size_t, not
3737         of type (template parameter dependent) int_type.
3738         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
3739         size vars to size_t.
3740         * testsuite/ext/stdio_filebuf.cc: Add.
3742 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
3743             Petur Runolfsson  <peturr02@ru.is>
3745         PR libstdc++/9318
3746         * include/bits/streambuf.tcc (__copy_streambufs):
3747         Don't conditionalize the copy to __testput.
3748         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
3750 2002-02-11  DJ Delorie  <dj@redhat.com>
3752         * acinclude.m4: Check for native targets that can't link at
3753         this point in the build.
3754         * aclocal.m4: Regenerate.
3755         * configure: Regenerate.
3757 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3759         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
3760         Correct alignment.
3761         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
3762         lock.
3764 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
3766         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
3767         unsigned char platforms.
3769 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
3771         PR libstdc++/9562
3772         * include/std/std_istream.h
3773         (basic_istream::sentry::operator bool()): Make const.
3774         * include/std/std_ostream.h
3775         (basic_ostream::sentry::operator bool()): Likewise.
3776         * testsuite/27_io/istream_sentry.cc (test03): Add.
3777         * testsuite/27_io/ostream_sentry.cc: Add.
3779 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
3781         PR libstdc++/9548
3782         Implement resolution of DR 231 (Ready)
3783         * include/bits/locale_facets.h (__num_base::_S_format_float):
3784         Change declaration: return void, remove __prec parameter.
3785         * src/locale.cc (__num_base::_S_format_float): Implement
3786         resolution of DR 231.
3787         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
3788         Tweak uses. Check for negative precision.
3789         * testsuite/22_locale/num_put/put/char/6.cc: Add
3790         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
3792 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
3794         * config/io/basic_file_libio.h: Fixups.
3795         * config/io/c_io_libio.h: Same.
3796         * libio/Makefile.am: Same.
3797         * libio/Makefile.in: Regenerated.
3799 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
3801         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
3802         Explicitly use the "C" locale.
3803         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
3805 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
3807         DR 75
3808         DR 305
3809         PR libstdc++/9028 (partial)
3810         PR libstdc++/9224
3811         PR libstdc++/9246
3812         PR libstdc++/9247
3814         * src/codecvt.cc
3815         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
3816         codecvt<wchar_t, char, mbstate_t>::do_length,
3817         codecvt<wchar_t, char, mbstate_t>::do_max_length):
3818         Move...
3819         * config/locale/generic/codecvt_members.cc:  ...here.
3820         * config/locale/gnu/codecvt_members.cc:  ...and here.
3822         * config/locale/generic/codecvt_members.cc,
3823         * config/locale/gnu/codecvt_members.cc
3824         (codecvt<wchar_t, char, mbstate_t>::do_encoding
3825         codecvt<wchar_t, char, mbstate_t>::do_in,
3826         codecvt<wchar_t, char, mbstate_t>::do_length,
3827         codecvt<wchar_t, char, mbstate_t>::do_max_length,
3828         codecvt<wchar_t, char, mbstate_t>::do_out):
3829         New implementation that handles stateless encodings,
3830         including UTF-8.
3832         * config/locale/generic/codecvt_members.cc,
3833         * config/locale/gnu/codecvt_members.cc,
3834         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
3835         * include/bits/codecvt.h,
3836         * src/codecvt.cc
3837         (codecvt::length, codecvt::do_length):
3838         Change type of first argument of length and do_length from
3839         'const state_type&' to 'state_type&' according to DR 75.
3841         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
3842         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
3843         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
3844         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
3845         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
3846         Cleanup and check for correct return value from encoding
3847         for "C" locale.
3848         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
3849         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
3850         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
3851         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
3852         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
3853         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
3854         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
3855         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
3856         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
3857         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
3858         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
3859         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
3860         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
3861         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
3862         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
3863         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
3864         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
3865         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
3866         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
3867         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
3868         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
3869         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
3870         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
3871         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
3872         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
3873         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
3874         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
3875         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
3876         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
3877         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
3878         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
3879         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
3880         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
3881         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
3882         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
3883         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
3884         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
3886 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
3888         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
3889         (money_put::do_put): Same.
3891 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
3893         * include/bits/ios_base.h (ios_base): Document reserved storage.
3895         * include/bits/locale_facets.h: (struct __pad): Comment on
3896         implementation.
3897         (__verify_grouping): Same.
3898         (__add_grouping): Same.
3899         * include/bits/locale_facets.tcc (__verify_grouping): Move
3900         comments to declaration.
3901         (__add_grouping): Same.
3903         * include/bits/locale_facets.tcc:
3904         (__write<_CharT, _OutIter>): New function.
3905         (__write<_CharT>): New function specialization.
3906         (num_put::_M_insert): Remove explicit loop over iterator.  Use
3907         __write.
3908         (num_put::_M_widen_float): Remove __basefield.
3909         (num_put::_M_widen_int): Move __basefield to within grouping block.
3911         * include/bits/streambuf_iterator.h: Include <streambuf>.
3912         (ostreambuf_iterator::_M_put): Add.
3914 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
3916         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
3918 2003-02-04  Nathan Myers  <ncm@cantrip.org>
3920         * testsuite/25_algorithms/min_max.cc (test02): Add.
3922 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
3924         PR libstdc++/9439, PR libstdc++/9425
3925         * config/io/basic_file_stdio.cc
3926         (__basic_file<char>::seekoff, seekpos): Return -1L if
3927         fseek fails.
3928         * include/bits/fstream.tcc (basic_filebuf::seekoff):
3929         Check _M_file.seekoff return value; always return
3930         pos_type(off_type(-1)) in case of failure.
3931         (basic_filebuf::pbackfail): Check this->seekoff return
3932         value and return traits_type::eof() in case of failure.
3933         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
3935 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
3937         * include/std/std_ostream.h (ostream::_M_write): Declare.
3938         * ostream.tcc (ostream::_M_write): Define.
3939         (basic_ostream::write): Use it.
3940         (operator<<(basic_ostream, _CharT)): Ditto.
3941         (operator<<(basic_ostream, char)): Ditto.
3942         (operator<<(basic_ostream, _CharT*)): Ditto.
3943         (operator<<(basic_ostream, char*)): Ditto.
3944         (operator<<(basic_ostream, basic_string)): Ditto.
3946 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3948         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
3950 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
3952         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
3953         add HTML comment about updating links if numbering changes.
3955 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
3957         PR libstdc++/9538
3958         * include/bits/streambuf.tcc (sputbackc): Access
3959         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
3960         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
3962 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
3964         PR libstdc++/9507
3965         * include/bits/fstream.tcc (open): If the 'ate' repositioning
3966         operation fails, calls close _and_ returns a null pointer
3967         to indicate failure (27.8.1.3,4).
3968         * testsuite/27_io/filebuf_members.cc (test_06): Add.
3970 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
3972         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
3974 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
3976         * docs/html/27_io/howto.html: New section on stdio_filebuf.
3977         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
3978         * docs/html/documentation.html: Regenerate.
3980 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
3982         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
3983         * docs/html/17_intro/porting.html: Regenerate.
3985 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3986             Phil Edwards  <pme@gcc.gnu.org>
3988         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
3989         numeric_limits for bits-per-word values.
3990         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
3991         Use __builtin_popcountl instead.
3992         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
3993         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
3994         Use __builtin_ctzl instead.
3995         (_S_bit_count, _S_first_one):  Remove.
3996         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
3997         * src/Makefile.am (sources):  Remove bitset.cc.
3998         * src/bitset.cc:  Delete file.
3999         * src/Makefile.in:  Regenerate.
4001 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
4003         PR libstdc++/9527, PR libstdc++/8713
4004         * docs/html/install.html:  Mention glibc version requirement.
4005         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
4006         with 3.2.1+ (formatting bugfixes).
4007         * docs/html/faq/index.txt:  Regenerate.
4009 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4011         PR libstdc++/9234
4012         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
4013         operator.
4015         * include/bits/valarray_before.h (__not_equal_to): Use != instead
4016         of ==.
4018         * testsuite/26_numerics/valarray_operators.cc: New test.
4020 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
4022         * docs/html/faq/index.html:  Correct link to libg++ information.
4023         * docs/html/faq/index.txt:  Regenerated.
4025 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
4026             Benjamin Kosnik  <bkoz@redhat.com>
4028         Const correctness issue:
4029         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
4030         * include/bits/locale_classes.h
4031         (locale::_Impl::_M_facets): Change type to const facet**.
4032         (locale::_Impl::_M_install_facet): Change declaration to
4033         take const facet*.
4034         (locale::facet::_M_references): Make mutable.
4035         (locale::facet::_M_add_reference): Declare const.
4036         (locale::facet::_M_remove_reference): Likewise.
4037         * include/bits/locale_facets.tcc
4038         (use_facet(const locale&)): Tweak for const facet** _M_facets.
4039         (has_facet(const locale&)): Likewise.
4040         * src/locale.cc
4041         (locale::facet::_M_add_reference): Adjust definition.
4042         (locale::facet::_M_remove_reference): Likewise.
4043         * src/localename.cc
4044         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
4045         const facet** _M_facets.
4046         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
4047         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
4048         (locale::_Impl::_M_install_facet): Adjust definition to take
4049         const facet* and for const facet** _M_facets.
4050         * testsuite/22_locale/locale/cons/8.cc: Add.
4052 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
4054         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
4055         Use __FLT_HAS_INIFINITY__ to initialize.
4056         (numeric_limits<float>::has_quiet_NaN): Likewise.
4057         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
4058         to initialize.
4059         (numeric_limits<double>::has_quiet_NaN): Likewise.
4060         (numeric_limits<long double>::has_infinity): Use
4061         __LDBL_HAS_INIFINITY__ to initialize.
4062         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
4064 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
4066         PR c++/9433
4067         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
4068         with bases which are very ambiguous.
4070 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
4072         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
4073         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
4074         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
4075         * src/Makefile.in: Regenerate.
4076         * libsupc++/Makefile.in: Regenerate.
4078 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
4080         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
4081         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
4082         version_specific_libs is enabled.
4083         * aclocal.m4, configure: Rebuilt.
4085 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
4087         * include/bits/valarray_meta.h: Remove, split into ...
4088         * include/bits/valarray_before.h: ... this, and ...
4089         * include/bits/valarray_after.h: ... this.
4090         * include/std/std_valarray.h: Adjust.
4091         * include/Makefile.am (bits_headers): Adjust.
4092         * include/Makefile.in: Regenerate.
4094 2003-01-24  Andreas Schwab  <schwab@suse.de>
4096         * config/linker-map.gnu: Fix for size_t variance.
4098 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
4100         PR libstdc++/9322
4101         * include/std/std_streambuf.h
4102         (basic_streambuf::basic_streambuf,
4103         basic_streambuf::~basic_streambuf,
4104         basic_streambuf::getloc, basic_streambuf::imbue):
4105         Remove _M_buf_locale_init
4106         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
4107         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
4108         * testsuite/27_io/streambuf_members.cc (test08):  Add.
4109         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
4111 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
4113         Revert include ordering.
4114         * config/locale/generic/c_locale.h: Add include guards.
4115         * config/locale/gnu/c_locale.h: Same.
4116         * include/bits/locale_classes.h: Remove cctype include.
4117         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
4118         * include/std/std_fstream.h: Remove streambuf include.
4119         * include/std/std_sstream.h: Remove streambuf include.
4121 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
4123         * configure.in (libtool_VERSION): To 6:0:0.
4124         * configure: Regenerated.
4125         * config/linker-map.gnu: Clean.
4127         * src/misc-inst.cc: Remove instantiations.
4129         * include/bits/stl_alloc.h (__malloc_alloc_template):
4130         To __malloc_alloc.
4131         (__default_alloc_template): To __pool_alloc.
4132         * src/stl-inst.cc: Same.
4133         * include/backward/alloc.h: Update.
4134         * testsuite/ext/allocators.cc: Update.
4136         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
4137         really try to remove these if possible.
4138         * src/locale.cc (std): Same.
4140         * testsuite/abi_check.cc (check_version): Add.
4142 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
4143             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
4144             Mark Mitchell  <mark@codesourcery.com>
4146         PR libstdc++/9269
4147         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
4148         (basic_filebuf::underflow): Declare.
4149         Move definitions.
4151 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
4153         * include/bits/locale_facets.h: Move non-facet classes requiring
4154         <string> to...
4155         * include/bits/locale_classes.h: New.
4156         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
4157         * include/bits/Makefile.in: Regenerate.
4159         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
4160         * config/locale/gnu/c_locale.h: ...here.
4161         * config/locale/generic/c_locale.h: Same.
4163         * include/bits/locale_facets.tcc: Move declarations to...
4164         * include/bits/locale_facets.h: ...here.
4165         * include/bits/basic_ios.h: Tweak includes accordingly.
4166         * include/std/std_sstream.h: Add streambuf include.
4167         * include/std/std_fstream.h: Ditto.
4168         * include/std/std_locale.h: Add locale_classes.h include.
4169         * include/std/std_iosfwd.h: Tweak.
4170         * src/concept-inst.cc: Add iterator include.
4172         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
4173         bits as unexported in the future.
4175 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
4177         Reshuffle 22_locale testsuite.
4178         * 22_locale/(codecvt.cc money_get.cc
4179         codecvt_members_char_char.cc money_get_members_char.cc
4180         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
4181         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
4182         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
4183         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
4184         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
4185         money_put_members_char.cc ctor_copy_dtor.cc
4186         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
4187         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
4188         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
4189         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
4190         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
4191         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
4192         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
4193         operators.cc ctype_widen_char.cc static_members.cc
4194         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
4195         global_templates.cc time_get_members_wchar_t.cc, members.cc,
4196         time_put.cc, messages_byname.cc, time_put_members_char.cc,
4197         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
4198         Split up into individual test cases...
4199         * 22_locale/codecvt/1.cc: New.
4200         * 22_locale/codecvt/2.cc: New.
4201         * 22_locale/codecvt/always_noconv/char/1.cc: New.
4202         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
4203         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
4204         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
4205         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
4206         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
4207         * 22_locale/codecvt/encoding/char/1.cc: New.
4208         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
4209         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
4210         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
4211         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
4212         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
4213         * 22_locale/codecvt/in/char/1.cc: New.
4214         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
4215         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
4216         * 22_locale/codecvt/in/wchar_t/1.cc: New.
4217         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
4218         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
4219         * 22_locale/codecvt/length/char/1.cc: New.
4220         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
4221         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
4222         * 22_locale/codecvt/length/wchar_t/1.cc: New.
4223         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
4224         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
4225         * 22_locale/codecvt/max_length/char/1.cc: New.
4226         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
4227         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
4228         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
4229         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
4230         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
4231         * 22_locale/codecvt/out/char/1.cc: New.
4232         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
4233         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
4234         * 22_locale/codecvt/out/wchar_t/1.cc: New.
4235         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
4236         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
4237         * 22_locale/codecvt/unicode/char.cc: New.
4238         * 22_locale/codecvt/unicode/wchar_t.cc: New.
4239         * 22_locale/codecvt/unshift/char/1.cc: New.
4240         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
4241         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
4242         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
4243         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
4244         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
4245         * 22_locale/collate/1.cc: New.
4246         * 22_locale/collate/2.cc: New.
4247         * 22_locale/collate/compare/char/1.cc: New.
4248         * 22_locale/collate/compare/char/2.cc: New.
4249         * 22_locale/collate/compare/char/wrapped_env.cc: New.
4250         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
4251         * 22_locale/collate/compare/wchar_t/1.cc: New.
4252         * 22_locale/collate/compare/wchar_t/2.cc: New.
4253         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
4254         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
4255         * 22_locale/collate/hash/char/1.cc: New.
4256         * 22_locale/collate/hash/char/2.cc: New.
4257         * 22_locale/collate/hash/char/wrapped_env.cc: New.
4258         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
4259         * 22_locale/collate/hash/wchar_t/1.cc: New.
4260         * 22_locale/collate/hash/wchar_t/2.cc: New.
4261         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
4262         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
4263         * 22_locale/collate/transform/char/2.cc: New.
4264         * 22_locale/collate/transform/char/wrapped_env.cc: New.
4265         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
4266         * 22_locale/collate/transform/wchar_t/2.cc: New.
4267         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
4268         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
4269         * 22_locale/collate_byname/1.cc: New.
4270         * 22_locale/ctype/1.cc: New.
4271         * 22_locale/ctype/2.cc: New.
4272         * 22_locale/ctype/cons/char/1.cc: New.
4273         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
4274         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
4275         * 22_locale/ctype/is/char/1.cc: New.
4276         * 22_locale/ctype/is/char/2.cc: New.
4277         * 22_locale/ctype/is/char/3.cc: New.
4278         * 22_locale/ctype/is/char/wrapped_env.cc: New.
4279         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
4280         * 22_locale/ctype/is/wchar_t/1.cc: New.
4281         * 22_locale/ctype/is/wchar_t/2.cc: New.
4282         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
4283         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
4284         * 22_locale/ctype/narrow/char/1.cc: New.
4285         * 22_locale/ctype/narrow/char/2.cc: New.
4286         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
4287         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
4288         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
4289         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
4290         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
4291         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
4292         * 22_locale/ctype/scan/char/1.cc: New.
4293         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
4294         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
4295         * 22_locale/ctype/scan/wchar_t/1.cc: New.
4296         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
4297         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
4298         * 22_locale/ctype/to/char/1.cc: New.
4299         * 22_locale/ctype/to/char/wrapped_env.cc: New.
4300         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
4301         * 22_locale/ctype/to/wchar_t/1.cc: New.
4302         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
4303         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
4304         * 22_locale/ctype/widen/char/1.cc: New.
4305         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
4306         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
4307         * 22_locale/ctype/widen/wchar_t/1.cc: New.
4308         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
4309         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
4310         * 22_locale/facet/1.cc: New.
4311         * 22_locale/facet/2.cc: New.
4312         * 22_locale/global_templates/1.cc: New.
4313         * 22_locale/locale/cons/1.cc: New.
4314         * 22_locale/locale/cons/2.cc: New.
4315         * 22_locale/locale/cons/3.cc: New.
4316         * 22_locale/locale/cons/4.cc: New.
4317         * 22_locale/locale/cons/5.cc: New.
4318         * 22_locale/locale/cons/6.cc: New.
4319         * 22_locale/locale/cons/7.cc: New.
4320         * 22_locale/locale/global_locale_objects/1.cc: New.
4321         * 22_locale/locale/global_locale_objects/2.cc: New.
4322         * 22_locale/locale/global_locale_objects/3.cc: New.
4323         * 22_locale/locale/operations/1.cc: New.
4324         * 22_locale/locale/operations/2.cc: New.
4325         * 22_locale/messages/1.cc: New.
4326         * 22_locale/messages/2.cc: New.
4327         * 22_locale/messages/members/char/1.cc: New.
4328         * 22_locale/messages/members/char/2.cc: New.
4329         * 22_locale/messages/members/char/3.cc: New.
4330         * 22_locale/messages/members/char/wrapped_env.cc: New.
4331         * 22_locale/messages/members/char/wrapped_locale.cc: New.
4332         * 22_locale/messages_byname/1.cc: New.
4333         * 22_locale/money_get/1.cc: New.
4334         * 22_locale/money_get/2.cc: New.
4335         * 22_locale/money_get/get/char/1.cc: New.
4336         * 22_locale/money_get/get/char/2.cc: New.
4337         * 22_locale/money_get/get/char/3.cc: New.
4338         * 22_locale/money_get/get/char/4.cc: New.
4339         * 22_locale/money_get/get/char/5.cc: New.
4340         * 22_locale/money_get/get/char/6.cc: New.
4341         * 22_locale/money_get/get/char/7.cc: New.
4342         * 22_locale/money_get/get/char/8.cc: New.
4343         * 22_locale/money_get/get/char/wrapped_env.cc: New.
4344         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
4345         * 22_locale/money_get/get/wchar_t/1.cc: New.
4346         * 22_locale/money_get/get/wchar_t/2.cc: New.
4347         * 22_locale/money_get/get/wchar_t/3.cc: New.
4348         * 22_locale/money_get/get/wchar_t/4.cc: New.
4349         * 22_locale/money_get/get/wchar_t/5.cc: New.
4350         * 22_locale/money_get/get/wchar_t/6.cc: New.
4351         * 22_locale/money_get/get/wchar_t/7.cc: New.
4352         * 22_locale/money_get/get/wchar_t/8.cc: New.
4353         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
4354         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
4355         * 22_locale/money_put/1.cc: New.
4356         * 22_locale/money_put/2.cc: New.
4357         * 22_locale/money_put/put/char/1.cc: New.
4358         * 22_locale/money_put/put/char/2.cc: New.
4359         * 22_locale/money_put/put/char/3.cc: New.
4360         * 22_locale/money_put/put/char/4.cc: New.
4361         * 22_locale/money_put/put/char/5.cc: New.
4362         * 22_locale/money_put/put/char/6.cc: New.
4363         * 22_locale/money_put/put/char/wrapped_env.cc: New.
4364         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
4365         * 22_locale/money_put/put/wchar_t/1.cc: New.
4366         * 22_locale/money_put/put/wchar_t/2.cc: New.
4367         * 22_locale/money_put/put/wchar_t/3.cc: New.
4368         * 22_locale/money_put/put/wchar_t/4.cc: New.
4369         * 22_locale/money_put/put/wchar_t/5.cc: New.
4370         * 22_locale/money_put/put/wchar_t/6.cc: New.
4371         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
4372         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
4373         * 22_locale/moneypunct/1.cc: New.
4374         * 22_locale/moneypunct/2.cc: New.
4375         * 22_locale/moneypunct/3.cc: New.
4376         * 22_locale/moneypunct/members/char/1.cc: New.
4377         * 22_locale/moneypunct/members/char/2.cc: New.
4378         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
4379         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
4380         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
4381         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
4382         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
4383         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
4384         * 22_locale/moneypunct_byname/1.cc: New.
4385         * 22_locale/num_get/1.cc: New.
4386         * 22_locale/num_get/2.cc: New.
4387         * 22_locale/num_get/get/char/1.cc: New.
4388         * 22_locale/num_get/get/char/2.cc: New.
4389         * 22_locale/num_get/get/char/3.cc: New.
4390         * 22_locale/num_get/get/char/4.cc: New.
4391         * 22_locale/num_get/get/char/5.cc: New.
4392         * 22_locale/num_get/get/char/6.cc: New.
4393         * 22_locale/num_get/get/char/wrapped_env.cc: New.
4394         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
4395         * 22_locale/num_get/get/wchar_t/1.cc: New.
4396         * 22_locale/num_get/get/wchar_t/2.cc: New.
4397         * 22_locale/num_get/get/wchar_t/3.cc: New.
4398         * 22_locale/num_get/get/wchar_t/4.cc: New.
4399         * 22_locale/num_get/get/wchar_t/5.cc: New.
4400         * 22_locale/num_get/get/wchar_t/6.cc: New.
4401         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
4402         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
4403         * 22_locale/num_put/1.cc: New.
4404         * 22_locale/num_put/2.cc: New.
4405         * 22_locale/num_put/put/char/1.cc: New.
4406         * 22_locale/num_put/put/char/2.cc: New.
4407         * 22_locale/num_put/put/char/3.cc: New.
4408         * 22_locale/num_put/put/char/4.cc: New.
4409         * 22_locale/num_put/put/char/5.cc: New.
4410         * 22_locale/num_put/put/char/wrapped_env.cc: New.
4411         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
4412         * 22_locale/num_put/put/wchar_t/1.cc: New.
4413         * 22_locale/num_put/put/wchar_t/2.cc: New.
4414         * 22_locale/num_put/put/wchar_t/3.cc: New.
4415         * 22_locale/num_put/put/wchar_t/4.cc: New.
4416         * 22_locale/num_put/put/wchar_t/5.cc: New.
4417         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
4418         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
4419         * 22_locale/numpunct/1.cc: New.
4420         * 22_locale/numpunct/2.cc: New.
4421         * 22_locale/numpunct/members/char/1.cc: New.
4422         * 22_locale/numpunct/members/char/2.cc: New.
4423         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
4424         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
4425         * 22_locale/numpunct/members/wchar_t/1.cc: New.
4426         * 22_locale/numpunct/members/wchar_t/2.cc: New.
4427         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
4428         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
4429         * 22_locale/numpunct_byname/1.cc: New.
4430         * 22_locale/numpunct_byname/2.cc: New.
4431         * 22_locale/time_get/1.cc: New.
4432         * 22_locale/time_get/2.cc: New.
4433         * 22_locale/time_get/date_order/char/1.cc: New.
4434         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
4435         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
4436         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
4437         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
4438         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
4439         * 22_locale/time_get/get_date/char/1.cc: New.
4440         * 22_locale/time_get/get_date/char/2.cc: New.
4441         * 22_locale/time_get/get_date/char/3.cc: New.
4442         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
4443         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
4444         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
4445         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
4446         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
4447         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
4448         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
4449         * 22_locale/time_get/get_monthname/char/1.cc: New.
4450         * 22_locale/time_get/get_monthname/char/2.cc: New.
4451         * 22_locale/time_get/get_monthname/char/3.cc: New.
4452         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
4453         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
4454         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
4455         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
4456         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
4457         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
4458         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
4459         * 22_locale/time_get/get_time/char/1.cc: New.
4460         * 22_locale/time_get/get_time/char/2.cc: New.
4461         * 22_locale/time_get/get_time/char/3.cc: New.
4462         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
4463         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
4464         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
4465         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
4466         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
4467         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
4468         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
4469         * 22_locale/time_get/get_weekday/char/1.cc: New.
4470         * 22_locale/time_get/get_weekday/char/2.cc: New.
4471         * 22_locale/time_get/get_weekday/char/3.cc: New.
4472         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
4473         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
4474         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
4475         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
4476         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
4477         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
4478         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
4479         * 22_locale/time_get/get_year/char/1.cc: New.
4480         * 22_locale/time_get/get_year/char/3.cc: New.
4481         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
4482         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
4483         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
4484         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
4485         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
4486         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
4487         * 22_locale/time_put/1.cc: New.
4488         * 22_locale/time_put/2.cc: New.
4489         * 22_locale/time_put/put/char/1.cc: New.
4490         * 22_locale/time_put/put/char/10.cc: New.
4491         * 22_locale/time_put/put/char/2.cc: New.
4492         * 22_locale/time_put/put/char/3.cc: New.
4493         * 22_locale/time_put/put/char/4.cc: New.
4494         * 22_locale/time_put/put/char/5.cc: New.
4495         * 22_locale/time_put/put/char/6.cc: New.
4496         * 22_locale/time_put/put/char/7.cc: New.
4497         * 22_locale/time_put/put/char/8.cc: New.
4498         * 22_locale/time_put/put/char/9.cc: New.
4499         * 22_locale/time_put/put/char/wrapped_env.cc: New.
4500         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
4501         * 22_locale/time_put/put/wchar_t/1.cc: New.
4502         * 22_locale/time_put/put/wchar_t/10.cc: New.
4503         * 22_locale/time_put/put/wchar_t/2.cc: New.
4504         * 22_locale/time_put/put/wchar_t/3.cc: New.
4505         * 22_locale/time_put/put/wchar_t/4.cc: New.
4506         * 22_locale/time_put/put/wchar_t/5.cc: New.
4507         * 22_locale/time_put/put/wchar_t/6.cc: New.
4508         * 22_locale/time_put/put/wchar_t/7.cc: New.
4509         * 22_locale/time_put/put/wchar_t/8.cc: New.
4510         * 22_locale/time_put/put/wchar_t/9.cc: New.
4511         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
4512         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
4514 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
4516         * config/locale/generic/messages_members.h
4517         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
4518         unqualified members of base clasess.
4520 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
4521             Jeffrey Oldham <oldham@codesourcery.com>
4523         * config/locale/gnu/messages_members.h: Use this-> to refer to
4524         unqualified members of base clasess.
4525         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
4526         * include/bits/codecvt.h: Likewise.
4527         * include/bits/deque.tcc: Likewise.
4528         * include/bits/fstream.tcc: Likewise.
4529         * include/bits/istream.tcc: Likewise.
4530         * include/bits/list.tcc: Likewise.
4531         * include/bits/locale_facets.h: Likewise.
4532         * include/bits/ostream.tcc: Likewise.
4533         * include/bits/sstream.tcc: Likewise.
4534         * include/bits/stl_bvector.h: Likewise.
4535         * include/bits/stl_deque.h: Likewise.
4536         * include/bits/stl_list.h: Likewise.
4537         * include/bits/stl_tree.h: Likewise.
4538         * include/bits/stl_vector.h: Likewise.
4539         * include/bits/vector.tcc: Likewise.
4540         * include/ext/ropeimpl.h: Likewise.
4541         * include/ext/stdio_filebuf.h: Likewise.
4542         * include/ext/stl_rope.h: Likewise.
4543         * include/std/std_fstream.h: Likewise.
4544         * include/std/std_sstream.h: Likewise.
4546 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
4548         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
4550 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
4552         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
4553         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
4554         * aclocal.m4: Regenerate.
4555         * configure: Regenerate.
4556         * testsuite/Makefile.am (all-local): Add conditional rule to
4557         generate testsuite_wchar_t.
4558         * testsuite/Makefile.in: Regenerate.
4559         * testsuite/lib/libstdc++-v3-dg.exp
4560         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
4561         testsuite_wchar_t is not present in the build directory.
4562         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
4563         Remove setulimit bits.
4564         * testsuite/26_numerics/complex_value.cc: Set to noopts.
4565         * testsuite/Makefile.am (CLEANFILES): Add.
4566         * testsuite/Makefile.in: Regenerate.
4568 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4570         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
4571         __hppa__.
4573 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
4575         Further conform g++'s __vmi_class_type_info to the C++ ABI
4576         specification.
4577         * libsupc++/cxxabi.h
4578         (__vmi_class_type_info::__flags_masks): Remove enumerations not
4579         required by the specification.
4581 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
4583         Renames, namespaces for testsuite utilities.
4584         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
4585         (gnu_allocator_tracker): Rename to allocation_tracker.
4586         (gnu_new_allocator): Rename to tracker_alloc.
4587         (__set_testsuite_memlimit): Rename to set_memory_limits.
4588         (gnu_assignment_operator): Rename to assignment_operator.
4589         (gnu_destructor): Rename to destructor.
4590         (gnu_copy_tracker): Rename to copy_tracker.
4591         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
4592         (run_tests_wrapped_locale): New.
4593         (run_tests_wrapped_env): New.
4594         * testsuite/testsuite_hooks.cc: Same.
4595         (class locale_data): Add.
4596         (class enviornment_variable): Add.
4597         (class not_found): Add.
4598         * testsuite/testsuite_allocator.h: Same.
4599         * testsuite/testsuite_allocator.cc: Same.
4600         * testsuite/23_containers/deque_ctor.cc
4601         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
4602         allocation_tracker.
4603         Change gnu_new_allocator to tracker_alloc.
4604         Change gnu_counting_struct to counter.
4605         Change gnu_copy_tracker to copy_tracker.
4606         Change gnu_copy_constructor to copy_constructor.
4607         Change gnu_assignment_operator to assignment_operator.
4608         Inject.
4609         * testsuite/23_containers/vector_capacity.cc: Same.
4610         * testsuite/23_containers/vector_ctor.cc (test01): Same.
4611         * testsuite/23_containers/list_modifiers.cc: Change
4612         gnu_copy_tracker to copy_tracker.
4613         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
4614         __set_testsuite_memlimit to set_memory_limits.
4615         * testsuite/21_strings/insert.cc (main): Same.
4616         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
4617         * testsuite/27_io/stringstream.cc: Same.
4618         * testsuite/27_io/stringbuf.cc: Same.
4619         * testsuite/27_io/streambuf.cc: Same.
4620         * testsuite/27_io/ostream.cc: Same.
4621         * testsuite/27_io/istream.cc: Same.
4622         * testsuite/27_io/fstream.cc: Same.
4623         * testsuite/lib/libstdc++-v3-dg.exp
4624         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
4625         three levels deeper in glob patterns.
4627 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
4629         * docs/doxygen/tables.html:  Finished now.
4630         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
4631         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
4632         comments.
4634         * include/bits/deque.tcc, include/bits/stl_alloc.h,
4635         include/bits/stl_deque.h, include/bits/stl_list.h,
4636         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
4637         for 3.4 removal.
4639 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
4641         * configure.in: Revert.
4642         * configure: Regenerate.
4644 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
4646         * include/Makefile.am (install-data-local): Prepend
4647         $(DESTDIR) to destination paths in all (un)installation
4648         commands.  Use ${c_base_builddir} and ${std_builddir}
4649         as destination subdirectories to achieve consistency with
4650         preceding mkinstalldirs commands.  No effect because both
4651         variables contain "." only.
4652         * include/Makefile.in: Regenerate.
4654 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
4656         * include/Makefile.am (stamp-*): Add checks for existing stamps.
4657         * include/Makefile.in: Regenerate.
4659         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
4660         * aclocal.m4: Regenerate.
4662         * configure.in: Don't add new multi-do rules every time the
4663         directory is reconfigured.
4664         * configure: Regenerate.
4666 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
4667             Nathan Myers  <ncm@cantrip.org>
4669         * src/Makefile.am (stamp-debug): Clean.
4670         * src/Makefile.in: Regenerate.
4672 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4674         PR libstdc++/8707
4675         * Makefile.am (distclean-multi): Fix.
4676         * Makefile.in: Regenerate.
4678 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
4680         * include/bits/locale_facets.h (messages): Move ctor, dtor
4681         definitions to..
4682         (__timepunct): Same.
4683         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
4684         definitions. Conditionalize for GNU systems.
4685         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
4686         definitions.
4687         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
4688         definitions. Conditionalize for GNU systems.
4689         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
4690         definitions.
4691         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
4692         * src/locale.cc: Define.
4693         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
4694         Use it.
4695         * config/locale/gnu/time_members.h: Use it.
4696         * config/locale/gnu/messages_members.h: Use it.
4697         * config/linker-map.gnu: Add locale::facets details.
4698         * include/Makefile.am (target_headers_extra): Add time_members.h.
4699         * include/Makefile.in: Regenerate.
4700         * acinclude.m4: Export CTIME_H.
4701         * aclocal.m4: Regenerate.
4702         * configure: Regnerate.
4704 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
4706         * src/codecvt.cc
4707         (codecvt<char, char, mbstate_t>::do_in, do_out):
4708         Tweak parameters to avoid unused parameter warnings.
4710 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
4712         PR libstdc++/9151
4713         * include/bits/locale_facets.cc (num_put::_M_convert_float):
4714         Limit __prec to digits10 + 2, not digits10 + 1, taking into
4715         account the possibility of %{g,G} conversion specifiers
4716         inside _S_format_float.
4717         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
4719 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4721         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
4722         libstdc++-v3-list-sourcefiles): Additionally handle files one
4723         level deeper in glob patterns.
4725         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
4726         * testsuite/27_io/istream_extractor_arith/01.cc,
4727         testsuite/27_io/istream_extractor_arith/02.cc,
4728         testsuite/27_io/istream_extractor_arith/03.cc,
4729         testsuite/27_io/istream_extractor_arith/06.cc,
4730         testsuite/27_io/istream_extractor_arith/07.cc,
4731         testsuite/27_io/istream_extractor_arith/08.cc,
4732         testsuite/27_io/istream_extractor_arith/09.cc,
4733         testsuite/27_io/istream_extractor_arith/10.cc,
4734         testsuite/27_io/istream_extractor_arith/11.cc,
4735         testsuite/27_io/istream_extractor_arith/12.cc,
4736         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
4737         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
4738         sparc*-*-solaris2*.
4740 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
4742         PR libstdc++/9168
4743         * src/codecvt.cc
4744         (codecvt<char, char, mbstate_t>::do_in, do_out):
4745         Implement the resolution of DR19 (TC).
4746         * testsuite/22_locale/codecvt_members_char_char.cc
4747         (test01): Tweak.
4749 2003-01-02  Jason Merrill  <jason@redhat.com>
4751         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
4752         *__mem is also an output.
4753         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.