configure.ac: GCC_NO_EXECUTABLES was supposed to be commented in the patch from 3...
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob32a2589d5b076a43914e3da836528c0b708a95ed
1 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
3         * configure.ac:  GCC_NO_EXECUTABLES was supposed to be commented
4         in the patch from 3 minutes ago.  Boy, is my face red.
5         * configure:  At least I remembered to regenerate this.
7 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
9         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Remove LIBMATH_INCLUDES
10         and LIBSUPCXX_INCLUDES.  Re-purpose TOPLEVEL_INCLUDES to refer to
11         things from the top level.
12         * configure.ac (GLIBCXX_IS_NATIVE):  Determine earlier and re-order.
13         Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
14         (currently unused).  Strip the fake-VPATH shell fragment from
15         automake-generated rules, if present.
16         * linkage.m4:  Add comment.
18         * fragment.am:  New file, containing factored-out common settings.
19         (AM_CPPFLAGS):  Absorb the deprecated INCLUDES variable contents.
20         * Makefile.am:  Include fragment.am.  Remove common variables.
21         * include/Makefile.am:  Likewise.
22         * libmath/Makefile.am:  Likewise.
23         * libsupc++/Makefile.am:  Likewise.
24         * po/Makefile.am:  Likewise.  Print rules during check.
25         * src/Makefile.am:  Likewise.
26         * testsuite/Makefile.am:  Likewise.
28         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
29         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
30         src/Makefile.in, testsuite/Makefile.in:  Regenerate.
32 2003-08-11  John Levon  <levon@movementarian.org>
34         * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
35         remaining places for the name change from GLIBCPP_FORCE_NEW
36         to GLIBCXX_FORCE_NEW
38 2003-08-11  Benjamin Kosnik  <bkoz@redhat.com>
40         * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
41         typedefs to num_*.      
42         * include/bits/basic_ios.tcc: Same.
43         * include/bits/istream.tcc: Same.
44         * include/bits/locale_facets.h: Same.
45         * include/bits/ostream.tcc: Same.
46         * include/std/std_istream.h: Same.
47         * include/std/std_ostream.h: Same.
48         * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
50         * include/ext/rope: Remove build warning.
51         
52 2003-08-11  Andreas Jaeger  <aj@suse.de>
54         * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
55         to make SMP-safe.
56         * include/Makefile.in: Regenerated.
58 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
60         * acinclude.m4 (GLIBCXX_CONFIGURE):  Unprecious CC and CFLAGS
61         when calling AC_PROG_CC.
62         * aclocal.m4, configure:  Regenerate.
64 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
66         * acinclude.m4:  Properly quote variable which will be expanded
67         inside makefiles.  Use CXX instead of CC to extract compiler info.
68         * configure.ac (AC_INIT):  Use the new 4-arg form to finally get the
69         correct form in PACKAGE.
70         * aclocal.m4, configure:  Regenerate.
72 2003-08-08  Benjamin Kosnik  <bkoz@redhat.com>
74         * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
75         (check-abi-verbose): Same.
76         * testsuite/testsuite_performance.h (report_performance): Same.
77         
78 2003-08-08  Loren J. Rittle  <ljrittle@acm.org>
80         * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
82 2003-08-07  Doug Gregor  <dgregor@apple.com>
84         * include/bits/char_traits.h (char_traits::not_eof): Match operand 
85         types in ? :.
87 2003-08-07  Bernardo Innocenti  <bernie@develer.com>
89         PR libstdc++/11784
90         * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
91         Replace variants with new BSET-based version.
92         
93 2003-08-07  Carlo Wood  <carlo@alinoe.com>
95         * include/bits/demangle.h: Do not use cctype functions that depend
96         on locale.
97         
98 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
100         * configure.in:  Rename...
101         * configure.ac:  ...to this.
102         * docs/html/17_intro/porting.texi:  Update name.
104         * docs/html/17_intro/porting.html:  Regenerate.
105         * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
106         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
107         testsuite/Makefile.in:  Regenerate (picks up new dependancy).
109 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
111         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS):  Put down the crack
112         pipe, open the window to let out the fumes, redo the option-handling
113         logic to properly execute the detection test.
114         * aclocal.m4, configure:  Regenerate.
116 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
118         Convert to new autotools.
119         * acconfig.h:  Update with correct names.
120         * configure.host (ATOMICITYH):  Rename to atomicity_include_dir.
121         (qnx6.[12]*):  'q' comes before 's', not after 'w'.
122         * configure.in:  Update.  Split hardcoded cross-configury settings
123         out to...
124         * crossconfig.m4:  ...here.  New file.  Contents untouched.
125         * acinclude.m4:  Reorganize and rewrite as needed.  Split large
126         chunks out to...
127         * linkage.m4:  ...here.  New file.  Math and stdlib linkage tests.
128         Contents untouched.
129         * scripts/testsuite_flags.in:  Update.
131         * Makefile.am:  Remove unneeded AUTOMAKE_OPTIONS settings and other
132         variables (already generated by automake).
133         * include/Makefile.am:  Ditto.
134         * libmath/Makefile.am:  Ditto.
135         * libsupc++/Makefile.am:  Ditto.
136         * po/Makefile.am:  Ditto.
137         * src/Makefile.am:  Ditto.
139         * aclocal.m4:  Regenerate using new versions.
140         * config.h.in:  Ditto.
141         * configure:  Ditto.
142         * Makefile.in:  Ditto.
143         * include/Makefile.in:  Ditto.
144         * libmath/Makefile.in:  Ditto.
145         * libsupc++/Makefile.in:  Ditto.
146         * po/Makefile.in:  Ditto.
147         * src/Makefile.in:  Ditto.
148         * testsuite/Makefile.in:  Ditto.
150 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
152         * po/libstdc++.pot:  Re-extract/regenerate.
154 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
156         * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
157         Remove unneeded variable assignments.  Leave them for automake.
158         * testsuite/lib/libstdc++-v3.exp:  Rename...
159         * testsuite/lib/libstdc++.exp:  ...to this.  Adjust function names
160         accordingly.
161         * testsuite/libstdc++-v3.dg/dg.exp:  Rename...
162         * testsuite/libstdc++-dg/normal.exp:  ...to this.  Adjust function
163         names accordingly.
165 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
167         * docs/doxygen/guide.html:  run_doxygen uses bash.
168         * docs/doxygen/mainpage.html:  We'll be shipping tag files.
169         * docs/doxygen/run_doxygen:  Tweaks and improvements.
170         * docs/doxygen/user.cfg.in:  Set GENERATE_TAGFILE.
171         * docs/html/install.html:  Update autoconf/automake requirements.
172         * docs/html/test.html:  Add section describing DejaGNU support.
173         * docs/html/17_intro/confdeps.dot:  New file, generates...
174         * docs/html/17_intro/confdeps.png:  ...this new file.
175         * docs/html/Makefile:  Generated here.
176         * docs/html/17_intro/configury.html:  New file.
178 2003-07-31  Phil Edwards  <pme@gcc.gnu.org>
180         * testsuite/lib/libstdc++-v3-dg.exp:  Rename...
181         * testsuite/lib/libstdc++-v3.exp:  ...to this.
182         * testsuite/libstdc++-v3.dg/dg.exp:  No special case needed now.
184 2003-07-31  Doug Gregor  <dgregor@apple.com>
186         Add user specialization tests.
187         * testsuite/23_containers/deque/1.cc: New.
188         * testsuite/23_containers/list/1.cc: New.
189         * testsuite/23_containers/map/1.cc: New.
190         * testsuite/23_containers/multimap/1.cc: New.
191         * testsuite/23_containers/multiset/1.cc: New.
192         * testsuite/23_containers/set/1.cc: New.
193         * testsuite/23_containers/vector/1.cc: New.
194         
195 2003-07-31  Benjamin Kosnik  <bkoz@redhat.com>
197         Reshuffle 23_containers testsuite.
198         * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc, 
199         bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
200         list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
201         map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
202         set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
203         vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
204         vector_resize.cc: Split into...
205         * 23_containers/bitset/cons/1.cc: New.
206         * 23_containers/bitset/cons/6282.cc: New.
207         * 23_containers/bitset/count/6124.cc: New.
208         * 23_containers/bitset/operations/1.cc: New.
209         * 23_containers/bitset/operations/2.cc: New.
210         * 23_containers/bitset/test/1.cc: New.
211         * 23_containers/bitset/to_ulong/1.cc: New.
212         * 23_containers/deque/cons/1.cc: New.
213         * 23_containers/deque/cons/2.cc: New.
214         * 23_containers/deque/operators/1.cc: New.
215         * 23_containers/list/capacity/1.cc: New.
216         * 23_containers/list/cons/1.cc: New.
217         * 23_containers/list/cons/2.cc: New.
218         * 23_containers/list/cons/3.cc: New.
219         * 23_containers/list/cons/4.cc: New.
220         * 23_containers/list/cons/5.cc: New.
221         * 23_containers/list/cons/6.cc: New.
222         * 23_containers/list/cons/7.cc: New.
223         * 23_containers/list/cons/8.cc: New.
224         * 23_containers/list/cons/9.cc: New.
225         * 23_containers/list/modifiers/1.cc: New.
226         * 23_containers/list/modifiers/2.cc: New.
227         * 23_containers/list/modifiers/3.cc: New.
228         * 23_containers/list/operators/1.cc: New.
229         * 23_containers/list/operators/2.cc: New.
230         * 23_containers/list/operators/3.cc: New.
231         * 23_containers/list/operators/4.cc: New.
232         * 23_containers/map/insert/1.cc: New.
233         * 23_containers/map/operators/1.cc: New.
234         * 23_containers/map/operators/1_neg.cc: New.
235         * 23_containers/multiset/insert/1.cc: New.
236         * 23_containers/priority_queue/members/7161.cc: New.
237         * 23_containers/queue/members/7157.cc: New.
238         * 23_containers/set/operators/1_neg.cc: New.
239         * 23_containers/stack/members/7158.cc: New.
240         * 23_containers/vector/bool/1.cc: New.
241         * 23_containers/vector/bool/6886.cc: New.
242         * 23_containers/vector/capacity/1.cc: New.
243         * 23_containers/vector/capacity/2.cc: New.
244         * 23_containers/vector/capacity/8230.cc: New.
245         * 23_containers/vector/cons/1.cc: New.
246         * 23_containers/vector/cons/2.cc: New.
247         * 23_containers/vector/cons/3.cc: New.
248         * 23_containers/vector/cons/4.cc: New.
249         * 23_containers/vector/cons/6513.cc: New.
250         * 23_containers/vector/element_access/1.cc: New.
251         * 23_containers/vector/modifiers/1.cc: New.
252         * 23_containers/vector/modifiers/2.cc: New.
253         * 23_containers/vector/resize/1.cc: New.
254         
255 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
257         * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
258         dg-options.
259         * testsuite/thread/pthread2.cc: Likewise.
260         * testsuite/thread/pthread3.cc: Likewise.
261         * testsuite/thread/pthread4.cc: Likewise.
262         * testsuite/thread/pthread5.cc: Likewise.
263         * testsuite/thread/pthread6.cc: Likewise.
264         * testsuite/thread/pthread7-rope.cc: Likewise.
266 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
268         * include/bits/c++config:  Partial reversion (comment placement) of
269         previous patch.
271 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
273         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
274         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
275         (_GLIBCXX_AT_AT): Remove.
276         (__USE_MALLOC): Remove.
277         * include/std/std_fstream.h: Modify.
278         * include/bits/basic_ios.h: Same.
279         * include/bits/valarray_array.h: Same.
280         * include/c_std/std_cmath.h: Same.
281         * include/c_std/cmath.tcc: Same.
282         * include/std/std_vector.h: Same.
283         * include/std/std_string.h: Same.
284         * include/std/std_stack.h: Same.
285         * include/std/std_queue.h: Same.
286         * include/std/std_list.h: Same.
287         * include/std/std_deque.h: Same.
288         * include/std/std_streambuf.h: Same.
289         * include/std/std_sstream.h: Same.
290         * include/std/std_ostream.h: Same.
291         * include/std/std_istream.h: Same.
292         * include/bits/valarray_array.tcc: Same, format.
294         * include/c/std_cctype.h: Fix include guards.
295         * include/c/std_cerrno.h: Same.
296         * include/c/std_cfloat.h: Same.
297         * include/c/std_climits.h: Same.
298         * include/c/std_clocale.h: Same.
299         * include/c/std_cmath.h: Same.
300         * include/c/std_csetjmp.h: Same.
301         * include/c/std_csignal.h: Same.
302         * include/c/std_cstdarg.h: Same.
303         * include/c/std_cstddef.h: Same.
304         * include/c/std_cstdio.h: Same.
305         * include/c/std_cstdlib.h: Same.
306         * include/c/std_cstring.h: Same.
307         * include/c/std_ctime.h: Same.
308         * include/c/std_cwchar.h: Same.
309         * include/c/std_cwctype.h: Same.
310         * include/c_std/cmath.tcc: Same.
311         * include/c_std/std_cmath.h: Same.
312         
313 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
315         PR libstdc++/11504.  
316         * include/bits/stl_tree.h: Replace C-style casts with C++-style
317         casts.  Changes to avoid casting away constness.  Eliminate
318         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
319         initialization lists.  Move out implementation of __black_count()
320         to...
321         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
322         Rename_Rb_tree_base_iterator::_M_increment() to
323         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
324         _Rb_tree_decrement.
325         * config/linker-map.gnu: Add and change symbols here.
327 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
329         * docs/html/22_locale/howto.html: Use locale::classic() instead
330         of locale("C").
332 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
334         * testsuite/testsuite_hooks.h: Remove list include.
335         (func_callback): Define as unique type, not std::list.
336         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
337         * testsuite/libstdc++-v3.dg/dg.exp: Same.
338         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
339         * testsuite/23_containers/bitset_ctor.cc: 
340         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
341         * testsuite/18_support/numeric_limits.cc: Same.
342         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
343         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
344         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
345         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
346         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
347         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
348         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
349         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
350         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
351         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
352         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
353         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
354         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
355         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
356         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
357         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
358         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
359         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
360         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
361         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
362         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc: 
363         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc: 
364         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc: 
365         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc: 
366         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc: 
367         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc: 
368         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc: 
369         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc: 
370         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc: 
371         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc: 
372         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
373         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
374         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
375         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
376         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
377         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
378         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
379         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
380         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
381         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
382         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
383         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
384         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
385         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
386         * testsuite/23_containers/bitset_ctor.cc: Same.
387         * testsuite/23_containers/bitset_shift.cc: Same.
388         * testsuite/23_containers/vector_ctor.cc: Same.
389         * testsuite/23_containers/vector_element_access.cc: Same.
390         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
391         * testsuite/24_iterators/iterator.cc: Same.
392         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
393         * testsuite/25_algorithms/lower_bound.cc: Same.
394         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
395         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
396         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
397         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
398         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
399         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
400         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
401         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
402         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
403         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
404         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: 
405         Same.
406         
407 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
409         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
410         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
411         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
412         GLIBCPP to GLIBCXX (and explain as needed).
414 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
416         * README:  Update.
418 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
420         * testsuite/22_locale/messages/members/char/1.cc,
421         testsuite/22_locale/messages/members/char/2.cc,
422         testsuite/22_locale/messages/members/char/3.cc,
423         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
424         the origin of LOCALEDIR.
425         * testsuite/lib/libstdc++-v3.exp:  New file.
427 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
429         * include/bits/char_traits.h: Update copyright, tweak.
430         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
431         std types.
433 2003-07-24  Matt Austern  <austern@apple.com>
435         * /include/bits/char_traits.h (class char_traits): Put all the
436         real work into the new class template __gnu_cxx::char_traits.
437         Gave generic definitions for member functions.  Types are taken
438         from the new class template __gnu_cxx::_Char_types.
439         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
440         file.  Test of std::char_traits<short>, which serves as a test of
441         the char_traits primary template.
443 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
445         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
447 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
449         * testsuite/23_containers/map_operators.cc: Conform to 
450         container requirement as value must be Assignable.
452 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
454         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
455         tests not only generation of pch files, but also their use.
456         * aclocal.m4, configure: Rebuilt.
458 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
460         * config/cpu/hppa/atomicity.h: Change
461         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
462         to match misc-inst.cc
464 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
466         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
467         * include/c_std/std_cctype.h: Ditto.
468         * include/c_std/std_cerrno.h: Ditto.
469         * include/c_std/std_cfloat.h: Ditto.
470         * include/c_std/std_climits.h: Ditto.
471         * include/c_std/std_clocale.h: Ditto.
472         * include/c_std/std_cmath.h: Ditto.
473         * include/c_std/std_csetjmp.h: Ditto.
474         * include/c_std/std_csignal.h: Ditto.
475         * include/c_std/std_cstdarg.h: Ditto.
476         * include/c_std/std_cstddef.h: Ditto.
477         * include/c_std/std_cstdio.h: Ditto.
478         * include/c_std/std_cstdlib.h: Ditto.
479         * include/c_std/std_cstring.h: Ditto.
480         * include/c_std/std_ctime.h: Ditto.
481         * include/c_std/std_cwchar.h: Ditto.
482         * include/c_std/std_cwctype.h: Ditto.
483         * include/std/std_algorithm.h: Ditto.
484         * include/std/std_bitset.h: Ditto.
485         * include/std/std_complex.h: Ditto.
486         * include/std/std_deque.h: Ditto.
487         * include/std/std_fstream.h: Ditto.
488         * include/std/std_functional.h: Ditto.
489         * include/std/std_iomanip.h: Ditto.
490         * include/std/std_ios.h: Ditto.
491         * include/std/std_iosfwd.h: Ditto.
492         * include/std/std_iostream.h: Ditto.
493         * include/std/std_istream.h: Ditto.
494         * include/std/std_iterator.h: Ditto.
495         * include/std/std_limits.h: Ditto.
496         * include/std/std_list.h: Ditto.
497         * include/std/std_locale.h: Ditto.
498         * include/std/std_map.h: Ditto.
499         * include/std/std_memory.h: Ditto.
500         * include/std/std_numeric.h: Ditto.
501         * include/std/std_ostream.h: Ditto.
502         * include/std/std_queue.h: Ditto.
503         * include/std/std_set.h: Ditto.
504         * include/std/std_sstream.h: Ditto.
505         * include/std/std_stack.h: Ditto.
506         * include/std/std_stdexcept.h: Ditto.
507         * include/std/std_streambuf.h: Ditto.
508         * include/std/std_string.h: Ditto.
509         * include/std/std_utility.h: Ditto.
510         * include/std/std_valarray.h: Ditto.
511         * include/std/std_vector.h: Ditto.
513 2003-07-22  Doug Gregor  <dgregor@apple.com>
515         * include/bits/basic_string.h (basic_string::insert): Deprecate
516         GNU extension.
518 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
520         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
521         paths for libio.
522         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
523         (test03): Include typeinfo for bad_cast.
524         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
525         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
526         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
528 2003-07-21  Doug Gregor  <dgregor@apple.com>
530         * include/bits/boost_concept_check.h:
531         (_EqualityComparableConcept::__constraints): Remove != from the 
532         list of constraints; it is not listed in Table 28 of the C++98 
533         standard.
535 2003-07-18  Andreas Jaeger  <aj@suse.de>
537         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
538         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
539         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
540         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
542 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
543         
544         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
545         * config/locale/generic/messages_members.h: Tweaks.
546         * config/locale/generic/monetary_members.cc
547         (moneypunct::_M_initialize_moneypunct): Use cache.
548         (moneypunct::~moneypunct): Delete cache.
549         * config/locale/generic/time_members.cc:
550         (__timepunct::_M_initialize_timepunct): Use cache.
551         * config/locale/generic/time_members.h:
552         (__timepunct::~__timepunct): Delete cache.
553         (__timepunct::__timepunct): Set cache.
554         * config/locale/gnu/messages_members.h: Tweaks.
555         * config/locale/gnu/monetary_members.cc:
556         (moneypunct::_M_initialize_moneypunct): Use cache.
557         (moneypunct::~moneypunct): Delete cache.
558         * config/locale/gnu/time_members.cc:
559         (__timepunct::_M_initialize_timepunct): Use cache.
560         * config/locale/gnu/time_members.h:
561         (__timepunct::~__timepunct): Delete cache.
562         (__timepunct::__timepunct): Set cache.
563         * include/bits/locale_facets.h (__timepunct_cache): New.
564         (__moneypunct_cache): New.
565         * include/bits/locale_facets.tcc: Tweak.
566         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
567         * src/locale-inst.cc: Instantiate caches.
568         * src/globals.cc: Add "C" caches.
569         * src/localename.cc: Use external "C" caches.
571 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
573         * docs/doxygen/guide.html:  Fix typo.
575 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
577         * include/ext/pod_char_traits.h: Add state template argument.
579 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
581         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
582         (num_get::_M_convert_int): To _M_insert_int.
583         (num_get::_M_convert_float): To _M_insert_float.        
584         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
585         Use caches for ctype, num_get.
586         (num_get::_M_extract_int): Same.
587         (num_get::get(bool)): Same.
588         (__verify_grouping): Use size_t.
589         * src/locale-inst.cc: Update.
590         * src/locale.cc: Adjust _S_atoms_in.
592 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
594         * docs/doxygen/mainpage.html:  Move building/writing instructions...
595         * docs/doxygen/guide.html:  ...to here.  New file.
597 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
599         * docs/html/ext/howto.html: Update URL for SGI STL docs.
600         * docs/html/faq/index.html: Same.
601         * docs/html/faq/index.txt: Regenerate.
603 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
605         PR libstdc++/11528
606         * include/bits/locale_facets.tcc (money_get::do_get):
607         Strip only _leading_ zeros.
608         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
609         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
611 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
613         * include/ext/hash_map (class hash_multimap): Remove extra
614         semicolons from __glibcxx_class_requires3 entries.
615         * include/ext/hash_set (class hash_set): Ditto.
616         (class hash_multiset): Ditto.
618 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
620         * include/bits/char_traits.h (char_traits<wchar_t>::move):
621         Change last parameter from int_type to size_t.
623 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
625         * include/bits/stl_algo.h (includes, set_union, set_intersection,
626         set_difference, set_symmetric_difference, max_element, min_element,
627         next_permutation, prev_permutation, find_first_of, find_end):
628         Document.
629         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
630         restrictions in docs.
631         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
632         Document.
633         * docs/doxygen/doxygroups.cc (setoperations):  New group.
635 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
637         * include/bits/basic_string.h:  Document public functions.
638         * docs/doxygen/TODO:  Update c21 todo.
640 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
642         * include/bits/stl_list.h:  Document more functions.
643         * docs/doxygen/TODO:  Update c23 todo.
645 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
647         * config/locale/gnu/c_locale.h (__convert_from_v): One more
648         qualification.
650 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
652         * include/bits/stl_tempbuf.h: Qualify free with std::.
653         * src/locale.cc: Include <cstdlib>, qualify getenv.
655 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
657         * config/locale/gnu/c_locale.h (__convert_from_v): Include
658         <cstdio>. Qualify names.
659         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
661 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
662             Nathan C. Myers  <ncm-nospam@cantrip.org>
664         PR libstdc++/11378
665         * include/std/std_fstream.h (xsputn): Declare only.
666         * include/bits/fstream.tcc (xsputn): Define, optimize for the
667         always_noconv() case: when __n is sufficiently large flush 
668         the buffer and issue a direct write, if possible combining the
669         two with writev in __basic_file<>::xsputn_2.
670         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
671         New, declare.
672         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
673         Define.
674         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
675         the availability of writev in <sys/uio.h>.
676         * configure.in: Call here.
677         * acconfig.h: Add undef for the corresponding symbol.
678         * aclocal.m4: Regenerate.
679         * configure: Regenerate.
680         * config.h.in: Regenerate.
681         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
683         * include/std/std_fstream.h (sync): Constify a variable.
685 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
687         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
688         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
689         
690 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
692         * config/locale/gnu/c_locale.h (__convert_from_v): Include
693         <cstring> and <cstdlib>. Qualify names.
695 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
697         * config/locale/generic/c_locale.h: Include <cstdlib> and
698         <cstring>.
699         * include/bits/boost_concept_check.h: Add this-> to unqualified
700         method calls.
701         * include/bits/deque.tcc: Likewise.
702         * include/bits/locale_facets.h : Likewise.
703         * include/bits/ostream.tcc: Likewise.
704         * include/bits/stl_algo.h: Likewise.
705         * include/bits/stl_bvector.h: Likewise.
706         * include/bits/stl_deque.h: Likewise.
707         * include/bits/stl_list.h: Likewise.
708         * include/bits/stl_tree.h: Likewise.
709         * include/bits/stl_vector.h: Likewise.
710         * include/bits/vector.tcc: Likewise.
711         * include/ext/rope: Likewise.
712         * include/ext/ropeimpl.h: Likewise.
713         * include/ext/stdio_filebuf.h: Likewise.
715 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
717         * include/bits/basic_ios.h (copyfmt): Document.
718         * include/bits/ios_base.h (event, event_callback, register_callback,
719         xalloc, iword, pword):  Document.
720         (imbue, ~ios_base): Update docs on callbacks.
722 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
724         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
725         warning messages if the environment cannot support symbol versioning.
726         (port_specific_symbol_file):  It's plural, add an 's' on the end.
727         * configure.host:  Likewise.
728         * src/Makefile.am:  Likewise.
729         * config/linker-map.gnu:  Remove one semicolon, heh.
730         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
731         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
732         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
734 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
736         * include/bits/locale_facets.tcc: Use function object for
737         __use_cache instead of template function. Partially specialize for 
738         __numpunct<_CharT>.
739         * include/bits/locale_classes.h: Update friend declaration for
740         __use_cache.
741         (_M_install_cache): No throw exception specs.
742         * src/locale.cc: Remove __use_cache specializations.
743         * include/ext/pod_char_traits.h (length): Tweak.
744         * include/bits/locale_facets.h (__numpunct_cache): Remove
745         char_type typedef.
746         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
747         (pod_long): Remove.
748         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
749         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
750         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
751         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
752         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
753         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
754         
755 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
757         * src/ios.cc (_M_grow_words):  Fix spelling.
759 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
761         * include/bits/stl_tree.h: Move larger member functions in
762         _Rb_tree_base_iterator and _Rb_tree_node to...
763         * src/stl_tree.cc: Here.
764         * src/Makefile.in: Add stl_tree.cc.
765         * src/Makefile.in: Regenerated.
766         * config/linker-map.gnu: Add symbols here.
768 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
770         * testsuite/ext/pod_char_traits.cc: New.
771         * include/ext/pod_char_traits.h: New.
772         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
773         * include/Makefile.in: Regenerate.
774         * docs/html/21_strings/howto.html: Update.
775                 
776 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
778         * testsuite/performance/list_create_fill_sort.cc: New.
780 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
782         * config/locale/generic/numeric_members.cc: Correct type info.
783         * config/locale/gnu/numeric_members.cc: Same.
784         * include/bits/locale_facets.h: Same.
785         
786         * include/bits/char_traits.h: Correct spacing.
788         * src/locale.cc: Wrap to 80 col.
789         
790 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
792         * include/std/std_complex.h: Partially revert last
793         changes: cmath functions must not be qualified.
795 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
797         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
798         2.11 with globbing backport fix.
799         * aclocal.m4, configure:  Regenerated.
801 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
803         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
804         if output is at all possible (!_M_reading), cannot be active.
806         * include/std/std_fstream.h: Tweak comments to doxygen style.
808 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
810         * include/bits/locale_classes.h: Fully qualify standard
811         functions with std::, thus avoiding Koenig lookup.
812         * include/bits/locale_facets.tcc: Likewise.
813         * src/locale.cc: Likewise.
814         * src/localename.cc: Likewise.
816 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
818         * include/bits/allocator_traits.h:  Fix doxygen markup.
819         * include/ext/mt_allocator.h:  Likewise.
821 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
823         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
825 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
827         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
828         requirement.  Add port_specific_symbol_file variable.
829         * configure.host:  Add docs for port_specific_symbol_file.
830         Clean up try_cpu block for x86.
831         * config/linker-map.gnu:  No more "last symbol can't have a
832         semicolon" kaka.  Add hook for port-specific symbols.
833         * src/Makefile.am:  Remove trailing whitespace.
834         (libstdc++-symbol.ver):  Detect the presence of port-specific
835         symbols, and add them accordingly.
837         * docs/html/17_intro/porting.texi:  Bring up to date.
839         * src/Makefile.in, aclocal.m4, configure,
840         docs/html/17_intro/porting.html:  Regenerated.
842 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
844         * scripts/create_testsuite_files:  New file.
845         * testsuite/Makefile.am (all-local, check-performance):  Use it.
846         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
847         * testsuite/Makefile.in:  Regenerated.
849         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
850         files at the end.
851         * testsuite/performance/fstream_seek_write.cc:  Likewise.
852         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
853         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
854         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
856 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
858         * include/bits/stl_list.h: Performance and memory usage
859         improvements. In particular, the behaviour of the constructor and
860         destructor as the list header node is no longer dynamically
861         allocated/de-allocated.
862         * include/bits/list.tcc: Likewise.
864 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
866         * include/std/std_complex.h: Fully qualify standard
867         functions with std::, thus avoiding Koenig lookup.
868         * include/std/std_memory.h: Likewise.
869         * include/std/std_valarray.h: Likewise.
871 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
873         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
874           variable for grandparent and use const
876 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
878         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
879         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
880         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
881         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
882         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
883         * testsuite/27_io/objects/char/7.cc: Ditto
884         * testsuite/27_io/objects/char/9661-1.cc: Ditto
886 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
888         * include/std/std_bitset.h: Fully qualify standard
889         functions with std::, thus avoiding Koenig lookup.
891         * include/std/std_fstream.h: Change comment to doxygen style.
893 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
895         * include/std/std_limits.h:  More CPP->CXX changes.
896         * scripts/check_survey.in:  Likewise.
898 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
900         Move from CPP to CXX.
901         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
902         * testsuite/Makefile.am: Same.
903         * testsuite/Makefile.in: Regenerate.
904         * po/Makefile.am: Same.
905         * po/Makefile.in: Regenerate.   
906         * libsupc++/Makefile.am: Same.
907         * libsupc++/Makefile.in: Regenerate.    
908         * libmath/Makefile.am: Same.
909         * libmath/Makefile.in: Regenerate.      
910         * include/Makefile.am: Same.
911         * include/Makefile.in: Regenerate.      
912         * src/Makefile.am: Same.
913         * src/Makefile.in: Regenerate.  
914         * acconfig.h: Same.
915         * configure.host: Same.
916         * configure.in: Same.
917         * configure: Regenerate.
918         * acinclude.m4: Same.
919         * aclocal.m4: Same.
920         * src: Change all files in this directory.
921         * testsuite: Same.
922         * include: Same, standardize include guards.
923         * config: Same.
924         * libsupc++: Same.
925         
926 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
928         * testsuite/22_locale/collate/compare/wchar_t/2.cc
929         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
930         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
931         * testsuite/22_locale/collate/hash/wchar_t/2.cc
932         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
933         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
934         * testsuite/22_locale/collate/transform/wchar_t/2.cc
935         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
936         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
937         XFAIL on all targets.
939 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
941         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
942         * aclocal.m4: Regenerate.
943         * configure: Regenerate.
945 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
947         * include/bits/locale_facets.tcc (__int_to_char): Move common case
948         to the top.
950 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
951             Petur Runolfsson  <peturr02@ru.is>
953         * config/io/basic_file_stdio.cc: Revert.
955 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
957         * include/bits/deque.tcc: Fully qualify standard
958         functions with std::, thus avoiding Koenig lookup.
959         * include/bits/gslice_array.h: Likewise.
960         * include/bits/indirect_array.h: Likewise.
961         * include/bits/list.tcc: Likewise.
962         * include/bits/mask_array.h: Likewise.
963         * include/bits/slice_array.h: Likewise.
965 2003-07-04  Gawain Bolton  <gbolton@free.fr>
967         * include/bits/stl_tree.h: Performance and memory usage
968         improvements.
970 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
972         * Makefile.am: Replace PWD with PWD_COMMAND.
973         * Makefile.in: Regenerated.
974         * docs/html/Makefile: Likewise.
976 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
978         * include/bits/valarray_array.h: Fully qualify standard
979         functions with std::, thus avoiding Koenig lookup.
980         * include/bits/vector.tcc: Likewise.
982 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
984         * include/Makefile.am: Update target_ to host_.
985         * include/Makefile.in: Regenerate.
986         * src/Makefile.am: Same.
987         * src/Makefile.in: Regenerate.
989         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
991 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
993         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
994         --enable-libstdcxx-debug-flags.
995         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
996         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
997         * aclocal.m4: Regenerate.
998         * configure: Same.
999         * docs/html/configopts.html: Update.
1001 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1003         Revert the fix for libstdc++/11378.
1005 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1007         PR libstdc++/11378
1008         * include/std/std_fstream.h (xsputn): In the unbuffered case,
1009         provided always_noconv(), issue directly _M_file.xsputn.
1010         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
1012 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1014         * include/bits/stl_list.h: Fully qualify standard
1015         functions with std::, thus avoiding Koenig lookup.
1016         * include/bits/stl_queue.h: Likewise.
1017         * include/bits/stl_raw_storage_iter.h: Likewise.
1018         * include/bits/stl_tempbuf.h: Likewise.
1019         * include/bits/stl_tree.h: Likewise.
1020         * include/bits/stl_uninitialized.h: Likewise.
1021         * include/bits/stl_vector.h: Likewise.
1022         * include/ext/rope: Change includes order.
1024 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1026         * configure.host (fpos_include_dir): Fix.
1028 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1030         * include/bits/stl_heap.h: Fully qualify standard
1031         functions with std::, thus avoiding Koenig lookup.
1032         * include/bits/stl_iterator_base_funcs.h: Likewise.
1034         * include/bits/stl_algo.h: Qualify __iterator_category too.
1035         * include/bits/stl_algobase.h: Likewise.
1036         * include/bits/stl_bvector.h: Likewise.
1038         * include/bits/stl_algo.h: Don't qualify the pair type.
1040 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
1042         * include/Makefile.am (target_headers): Add fpos.h
1043         (bits_headers): Remove.
1044         * include/Makefile.in: Regenerate.
1045         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
1046         * configure: Regenerate.
1047         * configure.host: Add fpos_include_dir.
1048         * config/os/gnu-linux/fpos.h: New.
1049         * config/os/generic/fpos.h: Add.
1050         * include/bits/fpos.h: Remove.
1052         * config/io/c_io_stdio.h: Remove fpos_t typedef.
1054         * include/bits/fstream.tcc: Tweaks.
1055         * include/std/std_fstream.h: Same.
1057         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
1058         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
1059         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
1060         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1061         * testsuite/27_io/fpos/1.cc: New.
1063 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
1064             Petur Runolfsson  <peturr02@ru.is>
1066         * include/std/std_streambuf.h: Remove _M_pos.
1067         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1068         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1069         use fread/fwrite instead of read/write.
1070         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1071         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1072         before reading again.
1073         * testsuite/27_io/objects/char/6.cc: Tweak.
1075 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
1077         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1078         _GLIBCPP_USE_WCHAR_T.
1080 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
1082         * include/bits/basic_string.tcc (_M_replace_aux): Constify
1083         __n1 and __off1.
1085 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
1087         * include/bits/stl_bvector.h: Fully qualify standard
1088         functions with std::, thus avoiding Koenig lookup.
1089         * include/bits/stl_construct.h: Likewise.
1090         * include/bits/stl_deque.h: Likewise.
1092 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
1094         * testsuite/22_locale/num_put/put/char/7.cc: Include
1095         <testsuite_hooks.h>, tweak.
1096         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1098 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
1100         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
1101         check* targets, but not libs/programs).
1102         * testsuite/Makefile.in:  Regenerate.
1104 2003-07-01  Roger Sayle  <roger@eyesopen.com>
1106         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1107         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1108         * aclocal.m4: Regenerate.
1109         * configure: Regenerate.
1111 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
1113         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1114         * aclocal.m4: Regenerated.
1115         * configure: Regenerated.
1117 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
1119         PR libstdc++/11389
1120         * include/bits/fstream.tcc (underflow): For encoding() == 0
1121         don't read more than __buflen chars.
1122         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1123         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1124         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1125         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1127 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
1129         * 22_locale/num_put/put/char/7.cc: New.
1130         * 22_locale/num_put/put/wchar_t/7.cc: New.
1132 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
1134         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1135         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1137 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1139         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1140         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1141         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1142         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1143         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1144         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1145         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1146         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1147         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1148         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1149         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1150         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1151         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1152         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1153         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1154         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1155         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1156         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1157         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1158         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1159         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1160         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1161         * data/seekoff-1.tst: Remove.
1162         * data/seekoff-1io.tst: New.
1163         * data/seekoff-1out.tst: New.
1164         * data/seekoff-2.tst: Remove.
1165         * data/seekoff-2io.tst: New.
1166         * data/seekoff-2out.tst: New.
1167         * data/seekoff.txt
1168         * data/seekpos-1.tst: Remove.
1169         * data/seekpos-1io.tst: New.
1170         * data/seekpos-1out.tst: New.
1171         * data/seekpos-2.tst: Remove.
1172         * data/seekpos-2io.tst: New.
1173         * data/seekpos-2out.tst: New.
1174         * data/seekpos.txt: New.
1176 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
1178         * src/locale.cc (__use_cache<numpunct>): Move from here ...
1179         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1180         here.
1182 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
1184         * include/bits/stl_algobase.h: Fully qualify standard
1185         functions with std::, thus avoiding Koenig lookup.
1187 2003-06-30  Doug Gregor <dgregor@apple.com>
1189         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
1190         subscripting empty string.
1192 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
1194         * testsuite/Makefile.am (check-am):  Do not override.
1195         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
1196         * testsuite/Makefile.in:  Regenerate.
1198 2003-06-30  Doug Gregor <dgregor@apple.com>
1200         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1201         Don't initialize an insert_iterator with a singular iterator.
1203 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1205         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1206         * aclocal.m4: Regenerate.
1207         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1208         GLIBCPP_ENABLE_PCH, default to yes.
1209         * configure: Regenerate.
1210         * docs/html/configopts.html: Add --enable-pch.
1212 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
1214         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
1215         (libstdc++-v3-init):  Also set LD_RUN_PATH.
1217 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
1219         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
1220         from here to filebuf and stringbuf.
1221         (~basic_streambuf()): Don't set _M_mode.
1222         (basic_streambuf()): Don't set _M_mode.
1223         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
1224         (~basic_filebuf()): Clean up.
1225         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
1226         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
1227         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
1228         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
1229         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
1230         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
1231         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
1233 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
1235         * include/std/std_fstream.h (_M_underflow): Remove.
1236         (uflow): Remove, inherited from streambuf.
1237         (underflow): Only declare.
1238         * include/bits/fstream.tcc (_M_underflow): Rename to
1239         underflow, to which is equivalent for __bump == false,
1240         simplify.
1241         * include/std/std_sstream.h (_M_underflow): Remove.
1242         (uflow): Remove, inherited from streambuf.
1243         (underflow): Only declare.
1244         * include/bits/sstream.tcc (_M_underflow): Rename to
1245         underflow, to which is equivalent for __bump == false,
1246         simplify.
1248 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
1250         * include/bits/stl_algo.h: Fully qualify standard functions
1251         with std::, thus avoiding Koenig lookup.
1253 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
1255         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
1256         Improve type correctness-wise.
1257         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
1258         Likewise.
1259         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
1260         Likewise.
1261         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
1262         Likewise.
1264 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
1266         * include/std/std_streambuf.h (uflow): According to
1267         27.5.2.4.3,p16, don't check gptr() < egptr().
1269 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
1271         PR libstdc++/9875
1272         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1273         (seekpos): Likewise.
1274         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1275         New test.
1276         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1277         New test.
1279 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
1281         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1282         output name to libstdc++-v3-performance.sum.
1283         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1284         * testsuite/Makefile.in: Regenerate.
1286 2003-06-27  Matthias Klose  <doko@debian.org>
1288         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1289         output of abi-check in libstdc++-v3-abi.sum.
1290         * testsuite/Makefile.in: Regenerate.
1292 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
1294         * config/os/bsd/netbsd/ctype_noninline.h
1295         (_C_ctype_): Declare.
1296         (ctype<char>::classic_table): Return _C_ctype_ + 1.
1297         (ctype<char>::ctype): Use classic_table.
1299 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
1300             Nathan C. Myers  <ncm-nospam@cantrip.org>
1302         PR libstdc++/9178
1303         * include/bits/fstream.tcc (_M_underflow): Properly estimate
1304         the worst-case number of external bytes for a given get area.
1305         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1307 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
1308             Petur Runolfsson  <peturr02@ru.is>
1310         PR libstdc++/11305
1311         * include/bits/fstream.tcc (overflow): Properly estimate the
1312         worst-case number of external bytes for a given put area
1313         (by using codecvt::max_length()).
1314         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1315         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1316         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1317         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1319 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
1321         * config/linker-map.gnu: Remove ; after __numpunct_cache.
1323 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
1325         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1326         to the imbued locale.
1327         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1328         _M_getloc.
1329         (num_put::_M_convert_float): Use.
1331 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
1332             Jerry Quinn  <jlquinn@optonline.net>
1334         * config/linker-map.gnu: Add __numpunct_cache.
1335         * config/locale/gnu/numeric_members.cc
1336         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1337         all elements for "C" locale.
1338         (numpunct::~numpunct): Delete _M_data.
1339         * config/locale/generic/numeric_members.cc: Same.
1340         * include/bits/basic_ios.tcc
1341         (basic_ios::init): Remove __locale_cache bits.
1342         (basic_ios::_M_cache_locale): Same.
1343         * include/bits/ios_base.h: Same. Tweaks.
1344         * include/bits/locale_classes.h: Tweaks. Reorder classes.
1345         (__use_cache): Make friends with _Impl, locale.
1346         (_Impl::_M_caches): Add.
1347         (_Impl::_M_install_cache): Add.
1348         * include/bits/locale_facets.h (__numpunct_cache): New.
1349         (numpunct): Encapsulate data members in __numpunct_cache member,
1350         _M_data. Adjust virtuals.
1351         (numpunct::numpunct): New ctor for the same.
1352         (__locale_cache_base): Remove.
1353         (__locale_cache): Remove.
1354         * include/bits/locale_facets.tcc (__use_cache): New function,
1355         specializations.
1356         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1357         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1358         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1359         * src/locale-inst.cc: Same. Add __numpunct_cache.
1360         * src/locale.cc: Tweak inlines.
1361         (__use_cache): Define specializations.
1362         * src/localename.cc: Use global bits.
1363         (_Impl::~Impl): Deal with __numpunct_cache destruction.
1364         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1365         (_Impl::_M_init_facet): Take into account __numpunct_cache.
1366         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1367         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1369 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
1370             Paolo Carlini  <pcarlini@unitus.it>
1372         * testsuite/performance/filebuf_copy.cc: New, testing char
1373         by char file copy.
1375 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
1376             Nathan C. Myers  <ncm-nospam@cantrip.org>
1378         * include/bits/fstream.tcc (_M_underflow): When the actual
1379         end of file is reached, set 'uncommitted' mode to allow a
1380         next write without an intervening seek (see C++98 27.8.1.1,2
1381         and C89 7.9.5.3).
1382         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1384 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
1386         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1387         sputc): Move inline, from here...
1388         * include/std/std_streambuf.h: ... to here.
1390         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1391         sputbackc, sungetc, sputc): Use __builtin_expect.
1393 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
1395         * docs/doxygen/mainpage.html:  Use a useful title.
1397 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1399         * docs/html/documentation.html: Remove assignment info.
1400         * docs/html/17_intro/contribute.html: Edits.
1401         * docs/html/17_intro/libstdc++-assign.tx: Remove.
1403         * docs/html/test.html: Update.
1405         * README: Update.
1407 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1408             Ulrich Drepper  <drepper@redhat.com>
1410         * testsuite/testsuite_performance.h: Tweak mallinfo.
1412 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
1413             Nathan C. Myers  <ncm-nospam@cantrip.org>
1415         * include/std/std_fstream.h (_M_filepos): Remove.
1416         (_M_reading, _M_writing): New, encode the various I/O modes:
1417         'read', 'write' and 'uncommitted'.
1418         (sync): If there is something to flush, do it, then go to
1419         'uncommitted' mode.
1420         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1421         with three different cases: __off > 0 (upon underflow),
1422         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1423         seekoff/pos).
1424         (_M_underflow): Don't call overflow, set _M_reading to true
1425         on success, tweak.
1426         (pbackfail): Set _M_reading to true on pback creation, tweak.
1427         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1428         set _M_writing to true on success, tweak.
1429         (seekoff): Simplify, set _M_reading, _M_writing to false, call
1430         _M_set_buffer(-1) ('uncommitted').
1431         (open, close, setbuf): Set _M_reading, _M_writing to false and
1432         call _M_set_buffer(-1), tweak.
1433         (basic_filebuf): Don't set _M_buf_unified.
1434         (_M_destroy_internal_buffer): Don't call setg and setp.
1435         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1436         _M_writing and _M_set_buffer(-1).
1437         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1438         _M_out_lim, _M_buf_unified): Remove.
1439         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1440         (setp): Don't set _M_out_lim.
1441         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1442         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1443         upon open the mode is 'uncommitted' and therefore the put area
1444         pointers are null.
1445         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1446         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1447         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1448         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1449         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1450         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1451         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1452         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1453         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1454         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1455         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1456         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1457         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1458         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1459         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1460         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1461         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1462         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1463         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1464         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1466         * include/bits/fstream.tcc (showmanyc): Use only the
1467         documented derivation interface to basic_streambuf (gptr(),
1468         setg(), etc.) to work right with user specializations.
1469         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1470         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1471         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1472         Likewise.
1473         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1474         xsgetn): Likewise.
1476 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
1478         * configure.host (freebsd*): Set abi_baseline_pair.
1479         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1480         (at or near first release) to 3.3.
1481         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1482         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1483         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1485         * include/ext/mt_allocator.h: Portability.
1486         * testsuite/testsuite_performance.h: Likewise.
1488 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
1490         * docs/html/17_intro/libstdc++-assign.txt: Update address.
1492         * testsuite/performance/ifstream_getline.cc: Fix.
1494 2003-06-23  Doug Gregor <dgregor@apple.com>
1496         * include/bits/boost_concept_check.h: Don't use _D or _R for type
1497         names.
1499 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
1500             Nathan C. Myers  <ncm-nospam@cantrip.org>
1502         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1503         is now used only for filebuf, when _M_buf_unified is true.
1504         epgtr() plays the role of _M_out_lim but it's only updated
1505         upon overflow, underflow, uflow, seekoff/pos.
1506         * include/bits/sstream.tcc (_M_underflow): New, implements
1507         stringbuf::underflow and uflow.
1508         (seekoff, seekpos): Tweak, use  _M_update_egptr.
1509         * include/std/std_sstream.h (str): Rewrote, deal correctly
1510         with the new logic, in particular, when pptr() > egptr().
1511         (_M_sync): When __testout && !__testin set all the get area
1512         pointers to the current string end.
1513         (_M_update_egptr): New, internal function updating egptr()
1514         to the actual string end.
1515         (_M_underflow): New, declare.
1516         (underflow): Dispatch to _M_underflow(false).
1517         (uflow): Dispatch to _M_underflow(true).
1519         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1520         seekpos): Use only the documented derivation interface to
1521         basic_streambuf (gptr(), setg(), etc.) to work right with
1522         user specializations.
1523         * include/std/std_sstream.h (str, _M_sync): Likewise.
1525 2003-06-20  Doug Gregor <dgregor@apple.com>
1527         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1528         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1529         dereference end iterator.
1530         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1531         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1532         index equal to the length of a string.
1533         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1534         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1535         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1536         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1537         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1538         * testsuite/23_containers/list_modifiers.cc: Don't dereference
1539         singular reverse iterator.
1540         * testsuite/23_containers/vector_bool.cc: Don't increment singular
1541         iterator.
1542         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1544 2003-06-20  Doug Gregor <dgregor@apple.com>
1546         * include/bits/basic_string.h (basic_string::replace): Dispatch
1547         _InputIterator version based on _Is_integer.
1548         * include/bits/basic_string.tcc (basic_string::replace):
1549         Renamed replace(iterator, iterator, size_type, _CharT) to
1550         _M_replace_aux.
1551         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1552         Test basic_string::assign(_InputIterator, _InputIterator),
1553         which calls basic_string::replace(iterator, iterator,
1554         _Input_iterator, _InputIterator).
1556 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
1558         * testsuite/testsuite_performance.h (resource_counter): Don't use
1559         mallinfo at the moment.
1561 2003-06-20  Matthias Klose  <doko@debian.org>
1563         * configure.host: Set try_cpu to target_cpu for existing
1564         baseline files.
1566 2003-06-19  Andreas Jaeger  <aj@suse.de>
1568         * testsuite/Makefile.am (extract_symvers): Revert accidental
1569         change.
1570         * testsuite/Makefile.in: Regenerate.
1572         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1573         * configure: Regenerated.
1575 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
1577         * include/std/std_sstream.h (_M_sync): Make non virtual.
1579 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1581         * testsuite/testsuite_performance.h (time_counter): New.
1582         (resource_counter): New.
1583         (report_performance): New.
1584         (start_counters): New.
1585         (stop_counters): New.
1586         (clear_counters): New.
1587         * testsuite/performance/allocator.cc: Instrument.
1588         * testsuite/performance/cout_insert_int.cc: Same.
1589         * testsuite/performance/complex_norm.cc: Same.
1590         * testsuite/performance/filebuf_sputc.cc: New.
1591         * testsuite/performance/fstream_seek_write.cc: Same.
1592         * testsuite/performance/ifstream_getline.cc: Same.
1593         * testsuite/performance/map_create_fill.cc: Same.
1594         * testsuite/performance/ofstream_insert_float.cc: Same.
1595         * testsuite/performance/ofstream_insert_int.cc: Same.
1596         * testsuite/performance/string_append.cc: Convert.
1597         * scripts/check_performance: New.
1598         * testsuite/Makefile.am (check-performance): New.
1599         (CLEANFILES): Add.
1601 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1602             Benjamin Kosnik  <bkoz@redhat.com>
1604         * include/std/std_sstream.h (setbuf): Check __n >= 0.
1605         * include/bits/fstream.tcc (setbuf): Tweak.
1607 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1609         * include/bits/sstream.tcc (seekoff): We can't seek beyond
1610         _M_out_lim, therefore _M_move_out_cur boils down to simply
1611         updating _M_out_cur.
1612         (seekpos): Likewise, clean up.
1614 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
1615             Paolo Carlini  <pcarlini@unitus.it>
1617         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1618         simply equivalent to the unbuffered case (0, 0) as far as
1619         _M_buf_size is concerned.
1621 2003-06-18  Andreas Jaeger  <aj@suse.de>
1623         * testsuite/Makefile.am (new-abi-baseline): Create baseline
1624         directory.
1625         (baseline_file): Use baseline_dir.
1626         (baseline_dir): New.
1627         (mkinstalldirs): New.
1629         * acinclude.m4: Rename baseline_file to baseline_dir, strip
1630         filename from baseline_dir.
1632         * testsuite/Makefile.in: Regenerated.
1633         * Makefile.in: Regenerated.
1634         * aclocal.m4: Regenerated.
1635         * configure: Regenerated.
1637 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1639         * configure.in: Missed check_survey bit.
1640         * configure: Regenerated.
1642 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1644         * scripts: New.
1645         * config/abi/extract_symvers: Move to...
1646         * scripts/extract_symvers: ...here.
1647         * mkcheck.in: Move to..
1648         * scripts/check_survey.in: ...here.
1649         * testsuite_flags.in: Move to..
1650         * scripts/testsuite_flags.in: ...here.
1651         * configure.in: Change check and testsuite_flags locations.
1652         * configure: Regenerate.
1653         * testsuite/Makefile.am (current_symbols.txt): Change location.
1654         * testsuite/Makefile.in: Regenerate.
1655         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1656         location of testsuite_flags.
1657         * Makefile.am (check-script): Move..
1658         (check-script-install): Move...
1659         * testsuite/Makefile.am: ... here.
1660         * testsuite/Makefile.in: Regenerate.
1661         * Makefile.in: Regenerate.
1663 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1665         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1667 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1669         * Makefile.am (check-abi): Move...
1670         (new-abi-baseline): Move...
1671         * testsuite/Makefile.am: ...here.
1672         (new-abi-baseline): Conditionalize.
1673         (check-abi): Conditionalize.
1674         (check-abi-verbose): New.
1675         * Makefile.in: Regenerate.
1676         * testsuite/Makefile.in: Regenerate.
1677         * configure.in: Consolidate testsuite configure bits.
1678         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1679         * configure: Regenerate.
1680         * aclocal.m4: Regenerate.
1681         * testsuite/abi_check.cc: Add --check-verbose.
1682         Only output detailed information if --check-verbose.
1684 2003-06-16  Andreas Jaeger  <aj@suse.de>
1686         * testsuite/abi_check.cc: Create summary report.
1688 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1690         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1691         for systems with BUFSIZ != 8192.
1692         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1693         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1694         Minor tweaks.
1696 2003-06-16  Andreas Jaeger  <aj@suse.de>
1698         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1699         check-abi multilib aware.
1700         * aclocal.m4: Regenerate.
1701         * configure: Regenerate.
1703 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1704             Andreas Jaeger  <aj@suse.de>
1706         * configure.host: Set x86_64 abi_baseline pair correctly.
1708 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1710         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1711         fix for missing seeks between gets and puts into...
1712         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1713         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1714         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1715         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1716         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1717         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1719 2003-06-15  Richard Henderson  <rth@redhat.com>
1721         * config/linker-map.gnu: Export virtual function thunks for
1722         64-bit systems too.
1724 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
1726         * config/abi/i686-pc-linux-gnu: To..
1727         * config/abi/i486-linux-gnu: ...this.
1728         * config/abi/alphaev67-unknown-linux-gnu: To..
1729         * config/abi/alpha-linux-gnu: ...this.
1730         * config/abi/ia64-unknown-linux-gnu: To...
1731         * config/abi/ia64-linux-gnu: ...this.
1732         * config/abi/x86_64-unknown-linux-gnu: To...
1733         * config/abi/x86_64-linux-gnu: ...this.
1734         * config/abi/i386-unknown-freebsd4: To...
1735         * config/abi/i386-freebsd4: ...this.
1736         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1737         CXXABI.
1738         * configure.host: abi_baseline_triplet to abi_baseline_pair.
1739         Simplify cpu bits so that abi_baseline_pair can use the same
1740         cpu configuration.
1741         * acinclude.m4: Same.
1742         * aclocal.m4: Regenerate.
1743         * configure.in: Can't get enable_abi_check to yes unless native.
1744         * configure: Regenerate.
1746 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
1748         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1749         fix for missing seeks between gets and puts into...
1750         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1751         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1752         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1753         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1754         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1755         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1756         for missing seeks between gets and puts.
1757         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1758         * testsuite/data/seekoff-1.tst: New.
1759         * testsuite/data/seekoff-2.tst: New.
1760         * testsuite/data/seekpos-1.tst: New.
1761         * testsuite/data/seekpos-2.tst: New.
1763 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
1765         Avoid multi-processor bus contention on increment/decrement-and-
1766         test of the reference count in the empty-string object, by comparing
1767         addresses first, and never touching the reference count of the empty-
1768         string object.
1769         * include/bits/basic_string.h:
1770         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1771         members.
1772         (_Rep::_S_empty_rep()): New accessor.
1773         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1774         a base class _Rep_base.
1775         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1776         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1777         since no longer must increment its refcount.
1778         * include/bits/basic_string.tcc:
1779         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1780         return immediately.  The former might be unnecessary.  The latter
1781         prevents begin() and end() from cloning it unnecessarily.
1782         (_S_construct(_InIterator, _InIterator, const _Alloc&,
1783         input_iterator_tag), _S_construct(_InIterator, _InIterator,
1784         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1785         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1786         (_M_mutate): Check for the empty string and treat it as shared.
1787         This is necessary here because _M_mutate is sometimes called with
1788         all-zero arguments; in all other uses of _M_is_shared, the test comes
1789         out right anyhow.
1791 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
1793         * src/allocator-inst.cc: Explicitly instantiate.
1794         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1795         Tweaks.
1796         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1798 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
1800         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1801         * aclocal.m4: Regenerate.
1802         * Makefile.am (SUBDIRS): Remove libio.
1803         * Makefile.in: Regenerate.
1804         * configure.in: Same.
1805         * configure: Regenerate.
1806         * config/io/basic_file_libio.cc: Remove.
1807         * config/io/basic_file_libio.h: Remove.
1808         * config/io/c_io_libio_codecvt.c: Remove.
1809         * config/io/c_io_libio.h: Remove.
1810         * libio/*: Remove.
1811         * src/Makefile.am: Same.
1812         * src/Makefile.in: Regenerate.
1813         * docs/html/configopts.html: Edits.
1814         * docs/html/explanations.html: Edits.
1816 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
1818         * include/bits/stl_alloc.h (__debug_alloc): Move out.
1819         (__malloc_alloc): Same.
1820         (__pool_alloc): Same.
1821         (__new_alloc): Same.
1822         Rename to..
1823         * include/bits/allocator.h: ...this.
1824         * include/bits/stl_deque.h: Modify comment.
1825         * include/bits/stl_tree.h: Modify include.
1826         * include/std/std_memory.h: Same.
1827         * include/ext/rope: Same.
1828         * include/ext/slist: Same.
1829         * include/std/std_vector.h: Same.
1830         * include/std/std_stack.h: Same.
1831         * include/std/std_queue.h: Same.
1832         * include/std/std_list.h: Same.
1833         * include/std/std_deque.h: Same.
1834         * include/backward/alloc.h: Same.
1835         * include/ext/debug_allocator.h: New.
1836         * include/ext/malloc_allocator.h: New.
1837         * include/ext/pool_allocator.h: New.
1838         * include/ext/new_allocator.h: New.
1839         * include/bits/pthread_allocimpl.h: Remove.
1840         * include/bits/stl_pthread_alloc.h: Remove.
1841         * include/Makefile.am (ext_headers): Add.
1842         * include/Makefile.in: Regenerate.
1843         * src/stl-inst.cc: Use __gnu_cxx namespace.
1844         * src/stl-inst.cc: Move to...
1845         * src/allocator-inst.cc: Here.
1846         * src/Makefile.am (sources): Update.
1847         * src/Makefile.in: Regenerate.
1848         * config/linker-map.gnu: Remove __pool_alloc bits.
1849         * testsuite/ext/headers.cc: Add.
1850         * testsuite/ext/allocators.cc: Fixup.
1852 2003-06-11  Stefan Olsson  <stefan@snon.net>
1853             Ola Rönnerup  <fnolis@home.se>
1855         * include/Makefile.am (ext_headers): Add.
1856         * include/Makefile.in: Regenerate.
1857         * include/ext/mt_allocator.h: New file.
1859 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1861         * include/bits/fstream.tcc (close): Clean up a bit.
1863         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1865         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1866         - the saved _M_in_cur, that is - cannot be null.
1867         (sync): Constify a variable.
1869         * include/std/std_streambuf.h: Tweak a comment.
1870         (in_avail): Constify a variable.
1872 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
1874         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
1875         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
1876         correctness of container::iterator typedefs.  Fix whitespace.
1877         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
1878         to allocator docs.
1879         * docs/html/documentation.html:  Regenerate.
1881         * include/bits/basic_string.h, include/bits/basic_string.tcc,
1882         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1883         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1884         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1885         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1886         include/bits/stl_vector.h, include/bits/vector.tcc,
1887         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1888         Change _Iter names to _Iterator, and __pos to __position.
1890         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1891         include/bits/stl_multiset.h, include/bits/stl_set.h:
1892         Remove emacs markers.
1894         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
1896 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1898         * include/bits/fstream.tcc (overflow): According to
1899         27.5.2.4.5, overflow() returns not_eof(eof()).
1900         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
1901         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
1903 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
1905         * include/bits/fstream.tcc (_M_underflow): Check overflow return
1906         value; tweak slightly.
1908 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
1910         * include/bits/fstream.tcc (_M_underflow): Do not special
1911         case the unbuffered case, which really means simply a one char
1912         get area.
1913         (basic_filebuf): Initialize _M_buf_size.
1914         (setbuf): Unbuffered means _M_buf_size == 1, since only
1915         _M_buf_size - 1 == 0 chars are going to be used for the
1916         put area and 1 for the get area.
1917         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
1918         (~basic_streambuf): Tweak.
1919         (basic_streambuf): Do not initialize _M_buf_size.
1920         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
1921         (~basic_filebuf): Tweak.
1922         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
1923         unbuffered situation (i.e., put area pointers NULL).
1924         * include/bits/streambuf.tcc (sbumpc): Clean up.
1925         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
1926         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
1927         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
1928         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
1929         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
1930         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
1931         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
1933 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
1935         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
1936         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
1937         statements.
1938         * configure.in:  Centralize AM_CONDITIONALs so that they are always
1939         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
1940         * aclocal.m4, configure:  Regenerated.
1942 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
1944         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
1946 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
1948         * include/bits/stl_iterator.h
1949         (reverse_iterator::reverse_iterator()): Apply DR235: default
1950         constructor default-initializes data member.  Instantiated on a
1951         pointer type, the member has to end up equal to zero.
1953 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
1955         * include/bits/stl_alloc.h: Cleanups.
1956         * include/ext/functional: Same.
1957         * include/ext/hash_map: Same.
1958         * include/ext/hash_set: Same.
1959         * include/ext/iterator: Same.
1960         * include/ext/memory: Same.
1961         * include/ext/numeric: Same.
1962         * include/ext/rb_tree: Same.
1963         * include/ext/ropeimpl.h: Same.
1964         * include/ext/slist: Same.
1965         * include/ext/stdio_filebuf.h: Same.
1966         * include/ext/stdio_sync_filebuf.h: Same.
1967         * include/ext/stl_rope.h: Move to...
1968         * include/ext/rope: ...here.
1969         * include/ext/stl_hash_fun.h: Move to...
1970         * include/ext/hash_fun.h: ...here.
1971         * include/ext/stl_hashtable.h: Move to...
1972         * include/ext/hashtable.h: ...here.
1973         * include/backward/hashtable.h: Reflect new names.
1974         * include/Makefile.am: Same.
1975         * include/Makefile.in: Regenerated.
1977 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
1979         PR libstdc++/9024
1980         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
1981         * include/bits/stl_algobase.h: Tweak.
1982         * include/std/std_fstream.h: Move _M_buf_size to...
1983         * include/std/std_streambuf.h: ...here. Modify.
1984         * include/bits/streambuf.tcc: Same.
1985         * testsuite/testsuite_hooks.h: Tweak.
1986         * testsuite/testsuite_io.h (constraint_filebuf): New.
1987         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
1988         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
1989         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
1990         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
1991         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
1992         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
1993         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
1994         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
1995         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
1996         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
1997         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
1998         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
1999         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
2000         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
2001         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
2002         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
2003         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
2004         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
2005         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
2006         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
2007         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
2008         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
2009         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
2010         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
2011         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
2012         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
2013         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
2014         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
2015         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
2016         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
2017         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
2018         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
2019         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
2020         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
2021         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
2022         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
2023         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
2024         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
2025         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
2026         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
2027         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
2028         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
2029         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
2030         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
2031         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
2032         * testsuite/data/sgetc.txt: New.
2033         * testsuite/data/sgetn.txt: New.
2035 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
2037         PR libstdc++/11095
2038         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
2039         Deal with width() smaller than zero.
2040         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
2041         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
2042         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
2043         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
2044         operator<<(basic_ostream, const basic_string&)): Likewise.
2046         * testsuite/27_io/basic_istream/extractors_character/char/
2047         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2048         * testsuite/27_io/basic_ostream/inserters_character/char/
2049         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2050         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
2051         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
2053 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2055         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
2056         .gch compilation works.
2057         * aclocal.m4, configure: Regenerate.
2058         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
2059         initialize PCHFLAGS.
2061 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
2063         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
2064         erase(iterator), erase(iterator, iterator), c_str,
2065         compare(const basic_string&)): Constify various variables.
2066         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
2067         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
2068         _S_create, resize, _M_replace, _M_replace_safe,
2069         append(const basic_string&), append(const basic_string&, size_type,
2070         size_type), append(const _CharT*, size_type), append(size_type,
2071         _CharT), operator+(const _CharT*, const basic_string&),
2072         operator+(_CharT, const basic_string&), replace(iterator, iterator,
2073         size_type, _CharT), find(const _CharT*, size_type, size_type),
2074         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
2075         rfind(_CharT, size_type), compare(size_type, size_type,
2076         const basic_string&), compare(size_type, size_type,
2077         const basic_string&, size_type, size_type), compare(const _CharT*),
2078         compare(size_type, size_type, const _CharT*), compare(size_type,
2079         size_type, const _CharT*, size_type)): Likewise.
2081 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
2083         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
2084         'if' branch less obscure.
2086 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
2088         PR libstdc++/9815
2089         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
2090         asm case to asm.
2091         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
2092         (__atomic_add): likewise.
2094 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2096         * include/bits/sstream.tcc (pbackfail): Minor clean up and
2097         reformatting, consistent with basic_filebuf::pbackfail.
2099 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
2101         PR libstdc++/11062
2102         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
2103         __attribute__ ((__unused__)).
2104         * config/os/aix/atomicity.h:  Likewise.
2106 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2108         PR libstdc++/9761
2109         * include/bits/fstream.tcc (pbackfail): If the pback buffer
2110         is already active don't try to store in it a second char.
2111         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
2113         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
2115 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2117         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
2118         line spacing.
2120 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2122         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
2123         instead of unnecessarily taking the address of _M_pback.
2124         (xsgetn): Simplify slightly for a single char pback buffer.
2126 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2128         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
2129         variables and two 'if', clean up.
2131 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2133         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
2134         not _M_out_end, since the former actually points to the string
2135         end (vs buffer end).
2136         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
2138 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
2140         * docs/doxygen/filter:  New file.
2141         * docs/doxygen/filter.sed:  New file.
2142         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
2143         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
2144         * docs/html/documentation.html:  Fix links to doxygen pages.
2146 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
2148         * include/bits/fstream.tcc (_M_convert_to_external): Don't
2149         check for __ilen > 0.
2151 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
2153         PR libstdc++/10783
2154         * include/bits/stl_iterator.h (class __normal_iterator):
2155         Don't inherit from iterator, add missing typedefs.
2157 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
2159         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
2160         * testsuite/24_iterators/reverse_iterator/1.cc: New.
2161         * testsuite/24_iterators/reverse_iterator/2.cc: New.
2162         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
2163         PR libstdc++/10783.
2165 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
2167         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
2168         on IA64 HP-UX.
2169         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
2170         _LIBUNWIND_STD_ABI is set.
2172 2003-05-26  Brendan Kehoe  <brendan@zen.org>
2174         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
2175         make sure the number of digits required after the decimal-point
2176         (if any) is exactly the value returned by frac_digits().
2177         * testsuite/22_locale/money_get/get/char/9.cc: New.
2178         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
2180 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
2182         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
2183         comment.
2185 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
2187         PR libstdc++/9339
2188         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
2189         (_M_pback): No array necessary.
2190         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
2191         unbuffered case, coalesec into ...
2192         (basic_filebuf::overflow): ...this.
2193         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
2194         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
2196 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2198         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
2199         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
2200         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
2201         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
2202         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
2203         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
2204         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
2205         libsupc++/eh_unex_handler.cc, libsupc++/exception,
2206         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
2207         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
2208         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
2209         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
2210         Replace "GNU CC" with "GCC".
2212         * include/backward/new.h: Replace "GNU CC" with "GCC".
2214 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2216         PR libstdc++/3066.
2217         * configure.in: Switch target to host, don't assume newlib.
2218         (target_alias): Remove.
2219         * configure: Regenerate.
2220         * acinclude.m4: Same.
2221         * aclocal.m4: Regenerate.
2222         * configure.target: Same. Rename to...
2223         * configure.host: This.
2225 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
2227         * include/std/std_fstream.h (_S_pback_size): Remove definition.
2228         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
2229         pback buffer.
2230         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
2231         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
2232         of _S_pback_size for systems with no COMDAT or weak support.
2233         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
2234         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
2235         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
2236         * testsuite/27_io/basic_fstream/3.cc: Likewise.
2237         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2238         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
2239         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
2240         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
2241         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
2243 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
2245         * include/bits/fstream.tcc (_M_underflow): Simplify:
2246         !__testout implies _M_filepos == _M_in_end, therefore
2247         the first _M_file.seekoff call is never issued.
2249 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2251         * configure.in: Sort cross table.
2252         * configure: Regenerate.
2254 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
2256         PR libstdc++/10106
2257         * configure.in: Add Solaris cross bits.
2259 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2261         * libstdc++-v3/config/os/mingw32/os_defines.h
2262         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
2263         (NOMINMAX): Define.  Update copyright year.
2265 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
2267         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
2269 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
2271         * docs/html/faq/index.html: Fix typo.
2272         * docs/html/faq/index.txt: Regenerate.
2274 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
2276         * docs/html/test.html: Fix markup.
2278 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2280         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
2281         zero.
2282         Update copyright year.
2284 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
2286         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
2288 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
2290         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
2291         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2293 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2295         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
2296         Cast via void* to avoid -Wcast-align warnings.
2297         (__default_alloc_template::_S_refill): Likewise.
2299 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
2301         * testsuite/README: Move to...
2302         * docs/html/test.html: ...here. Add documentation.
2303         * docs/html/install.html: Move testing bits out..
2304         * docs/html/documentation.html: Add separate testing link.
2305         * testsuite/performance: Add.
2306         * testsuite/performance/allocator.cc: New.
2307         * testsuite/performance/complex_norm.cc: New.
2308         * testsuite/performance/cout_insert_int.cc: New.
2309         * testsuite/performance/fstream_seek_write.cc: New.
2310         * testsuite/performance/ifstream_getline.cc: New.
2311         * testsuite/performance/map_create_fill.cc: New.
2312         * testsuite/performance/ofstream_insert_float.cc: New.
2313         * testsuite/performance/ofstream_insert_int.cc: New.
2314         * testsuite/performance/string_append.cc: New.
2315         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
2316         performance tests.
2318 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
2320         PR libstdc++/10689
2321         * include/std/std_complex.h (pow): Tidy.
2323 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
2325         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
2326         that upon filebuf::close() 27.8.1.1,3 is enforced.
2328 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
2330         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2332 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
2333             Nathan Myers  <ncm@cantrip.org>
2335         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2336         _M_convert_to_external only once (_M_buf_size is now the size of
2337         the put area + 1 for the overflow char of a full area); call
2338         _M_set_buffer instead of _M_set_indeterminate.
2339         (setbuf): Don't accept a buffer smaller than 2 chars.
2340         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2341         instead of _M_set_determinate.
2342         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2343         (seekoff): Likewise.
2344         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2345         std::ios_base::openmode, bool, size_t),
2346         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2347         Likewise.
2348         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2349         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2350         _M_buf_size - 1.
2351         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2352         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2353         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2354         the put area is now BUFSIZ - 1.
2355         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2356         that now the smallest _M_buf_size is 2 (still fails, for the same
2357         reason, with 3.2.3)
2359 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
2361         * testsuite/thread/pthread4.cc: Tweak test.
2363 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2365         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2366         excess errors dg marker, use dg-errors instead.
2367         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2368         * testsuite/20_util/auto_ptr_neg.cc: Same.
2370 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2372         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2373         cached member.
2374         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2375         Initialize _M_codecvt.
2376         (basic_filebuf::imbue): Same.
2377         (basic_filebuf::showmanyc): Use it.
2378         (basic_filebuf::underflow): Use it.
2379         (basic_filebuf::_M_convert_to_external): Use it.
2380         (basic_filebuf::seekoff): Use it.
2381         (basic_filebuf::imbue): Use it, tweaks.
2382         * include/bits/localefwd.h (__check_facet): New.
2383         * include/bits/locale_classes.h: Tweaks.
2384         * include/bits/locale_facets.tcc: Tweaks.
2385         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2386         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2387         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2388         * include/bits/basic_ios.tcc: Same.
2389         * include/bits/istream.tcc: Same.
2390         * include/bits/ostream.tcc: Same.
2391         * include/std/std_streambuf.h: Same.
2392         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2393         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2394         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2395         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2396         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2397         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2399 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
2401         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2402         unnecessary includes and unused string literals.
2403         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2404         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2405         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2406         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2408 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2410         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2412 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
2414         * include/std/std_fstream.h (_M_convert_to_external): Change
2415         to return bool, take two less streamsize parameters.
2416         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2417         consistently definition.
2418         (_M_overflow): Adjust call points.
2420 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2422         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2424 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2426         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
2427         * testsuite/Makefile.in:  Regenerate.
2429 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2431         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
2432         * testsuite/Makefile.in:  Regenerate.
2434 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
2436         PR libstdc++/3181
2437         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2438         (acos): Handle integer argument.
2439         (asin): Likewise.
2440         (atan): Likewise.
2441         (atan2): Likewise.
2442         (ceil): Likewise.
2443         (cos): Likewise.
2444         (cosh): Likewise.
2445         (exp): Likewise.
2446         (fabs): Likewise.
2447         (floor): Likewise.
2448         (frexp): Likewise.
2449         (ldexp): Likewise.
2450         (log): Likewise.
2451         (log10): Likewise.
2452         (sin): Likewise.
2453         (sinh): Likewise.
2454         (sqrt): Likewise.
2455         (tan): Likewise.
2456         (tanh): Likewise.
2457         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2458         (__enable_if): Likewise.
2459         * testsuite/26_numerics/cmath/overloads.C: New test.
2461 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2463         PR libstdc++/9027
2464         PR libstdc++/9520
2465         PR libstdc++/10096
2466         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
2467         implementation, based on old wchar_t specialization, add support
2468         for codecvt::in() return value of codecvt_base::noconv, remove
2469         _M_file.sys_ungetc() call.
2470         * include/std/std_fstream.h (basic_file::underflow,
2471         basic_file::uflow, basic_file::_M_underflow):  Remove
2472         specialization declarations, call _M_underflow from generic versions
2473         of underflow and uflow.
2474         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2475         basic_file::_M_underflow):  Remove specializations.
2476         * src/Makefile.am (sources):  Remove fstream.cc.
2477         * src/Makefile.in:  Regenerated.
2478         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
2479         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
2480         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
2481         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
2483 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
2485         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2486         buffer.
2487         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2488         unbuffered bits.
2489         (__basic_file::xsputn): Same.
2490         (__basic_file::seekoff): Same.
2491         (__basic_file::seekpos): Same.
2492         (__basic_file::showmanyc): Same.
2493         * config/io/basic_file_stdio.cc: Same.
2494         * include/std/std_fstream.h: Same.
2495         * include/bits/fstream.tcc: Same.
2496         * src/fstream.cc: Same.
2497         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2499 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2501         PR libstdc++/9520
2502         PR libstdc++/9661
2503         PR libstdc++/9662
2504         * include/ext/stdio_sync_filebuf.h:  New file.
2505         (basic_stdiobuf):  New.
2506         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2507         * include/Makefile.in: Regenerate.
2508         * include/bits/ios_base.h (Init::_S_create_buffers,
2509         Init::_S_destroy_buffers):  Remove declarations.
2510         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2511         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
2512         * src/ios.cc (Init::_S_create_buffers,
2513         Init::_S_destroy_buffers):  Remove.
2514         (Init::Init):  Create and use syncronized buffers.
2515         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
2516         create and install unsyncronized buffers.
2517         * testsuite/27_io/objects/char/10.cc:  New test.
2518         * testsuite/27_io/objects/char/9.cc:  New test.
2519         * testsuite/27_io/objects/char/9661-1.cc:  New test.
2520         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
2521         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
2522         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
2523         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
2524         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
2525         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
2526         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
2527         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
2528         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
2529         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
2530         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
2531         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
2532         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
2533         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
2534         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
2535         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
2536         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
2537         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
2538         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
2539         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
2540         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
2541         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
2542         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
2543         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
2544         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
2545         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
2546         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
2547         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
2548         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
2549         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
2550         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
2551         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
2552         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
2553         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
2554         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
2555         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
2556         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
2557         * testsuite/ext/stdiobuf_char.cc:  New test.
2558         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
2560 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
2562         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2563         unnecessary includes and unused string literals.
2564         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2566 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
2568         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2570 2003-05-07  Richard Henderson  <rth@redhat.com>
2572         PR c++/10570
2573         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2574         (__cxa_end_catch): Likewise.
2575         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
2576         _Unwind_Resume_or_Rethrow.
2577         * libsupc++/eh_personality.cc (empty_exception_spec): New.
2578         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2579         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
2580         exceptions.  Don't push terminate/unexpected to cxa functions.
2581         (__cxa_call_unexpected): Remove foreign exception fixmes.
2583 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
2585         * testsuite/27_io/ios_base/cons: New.
2586         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2587         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2589 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
2591         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2592         * src/fstream.cc
2593         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2594         there is no buffer or __testget == !__testinit.
2596         * src/fstream.cc
2597         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2598         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2600         * include/std/std_fstream.h (_M_destroy_pback): Don't set
2601         unnecessarily _M_pback_cur_save and _M_pback_end_save.
2603         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2605         * include/std/std_sstream.h (_M_sync): Minor tweak.
2607         * include/bits/fstream.tcc (close): No need to call
2608         _M_destroy_pback, setting _M_pback_init to false suffices
2609         to clean up.
2611 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
2613         * include/bits/stl_algo.h: Enums as _S_.
2614         * include/bits/stl_tree.h: Same.
2615         * include/bits/stl_bvector.h: Same.
2616         * include/bits/ios_base.h: Same.
2617         * include/bits/stl_alloc.h: Same.
2618         * include/ext/stl_hashtable.h: Same.
2619         * src/ios.cc: And here.
2621         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2622         * include/bits/sstream.tcc: Same.
2624         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2626         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2628         * include/bits/locale_facets.h (__num_base): Remove protected.
2629         Use _S_[io]* names for enumerations.
2630         (_S_format_int): Remove.
2631         * include/bits/locale_facets.tcc: Same.
2632         * src/locale.cc: Same.
2634         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2636 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
2638         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
2639         * docs/html/faq/index.txt:  Regenerated.
2641 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
2642             Matt Kraai <kraai@alumni.cmu.edu>
2644         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2645         And retweak.
2647 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2649         * configure.target (mips*): Use the generic atomicity.h by default.
2651 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
2652             (Inspired by an alternate patch from Danny Smith.)
2654         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2655         (_Swap_lock_struct<>): ...and the horse it rode in on.
2656         * src/globals.cc (_Swap_lock_struct<>): Likewise.
2657         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2658         member to support...
2659         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2660         visibility rules related to POSIX threads.
2661         * testsuite/thread/pthread7-rope.cc: New test.
2663 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
2665         * testsuite/21_strings/basic_string/find/char/3.cc: New
2666         file, testing basic_string<char>::find_first_not_of.
2667         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2668         Likewise for basic_string<wchar_t>.
2670 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
2672         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2674 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
2676         * include/Makefile.am (CLEANFILES): Remove PCH files in target
2677         directory.
2678         * include/Makefile.in: Regenerate.
2680 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
2682         * include/std/std_sstream.h (str()): Tidy.
2684 2003-05-02  Nathan Myers  <ncm@cantrip.org>
2685             Paolo Carlini  <pcarlini@unitus.it>
2687         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2689 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
2691         * include/bits/basic_string.h (swap): Remove redundant template
2692         parameters from declaration of non-template member function.
2694 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
2696         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
2697         * configure.in:  Move libintl.h header test...
2698         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
2699         the NLS-related test results into one symbol.
2700         * src/functexcept.cc:  Use it here.
2701         * aclocal.m4, config.h.in, configure:  Regenerated.
2703 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2705         * include/bits/sstream.tcc (overflow): Instead of calling
2706         str(), then _M_string.reserve, thus copying the contents
2707         of the current buffer two times, just copy the latter in
2708         a temporary, then use the 'swap trick'.
2710 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2712         * include/std/std_sstream.h (str()): Revert the best of the
2713         previous 'improvement', incorrect due to the COW nature of
2714         v3 basic_string; simplify.
2716 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2718         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2719         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2721 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2723         * testsuite/abi_check.cc (check_version): Update known versions.
2724         Check added symbols for version_name != base version. Add missing
2725         symbols to incompatible list.
2727 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2729         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2730         * aclocal.m4: Regenerated.
2731         * configure: Regenerated.
2733 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2735         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2736         Const-ify some variables.
2737         (basic_streambuf::xsputn): Likewise; change the type of some
2738         variables to size_t.
2739         (__copy_streambufs): Change some variables to size_t.
2741 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2743         * include/std/std_sstream.h (str()): Avoid constructing
2744         a basic_string temporary not only when it would turn out
2745         to be zero-sized but also when identical to the current
2746         _M_string buffer.
2748 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2750         * include/ext/stdio_filebuf.h
2751         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2752         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2753         Shorten a bit (-10 lines) by factoring out some code.
2755 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
2757         * acinclude.m4:  Add bit missing from previous patch.
2758         * aclocal.m4, configure:  Regenerated.
2760 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2762         * docs/doxygen/mainpage.html:  Bring up to date.
2763         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
2764         in Doxygen.
2765         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
2766         breaks everything.  Don't scan them.
2767         * docs/html/documentation.html:  Point to "Write after approval"
2768         notes.
2770 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2772         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
2773         of libc if message translations are being used.  Fix info text in
2774         xieee_1003.1-2001 case.
2775         * aclocal.m4, configure:  Regenerate.
2777 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
2778            Loren J. Rittle <ljrittle@acm.org>
2779            Martin v. Loewis  <martin@v.loewis.de>
2781         * config/cpu/i386/atomicity.h: New file.
2783 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2785         * include/bits/fstream.tcc (open): Change to single return.
2787 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2789         * include/std/std_sstream.h (underflow): Change to single return.
2791 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2793         * include/std/std_streambuf.h (_M_buf): is currently
2794         used only for basic_filebuf, therefore move it there.
2795         (basic_streambuf(), ~basic_streambuf()): Adjust.
2796         * include/std/std_fstream.h (_M_buf): Moved here.
2797         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2798         is actually redundant for basic_stringbuf.
2799         (_M_really_sync): Likewise.
2800         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2801         * include/bits/sstream.tcc (seekoff): Adjust.
2803 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2805         * src/localename.cc: Standardize exception strings.
2806         * src/locale.cc: Same.
2807         * src/ios.cc: Same.
2808         * include/bits/basic_string.tcc: Same.
2809         * include/bits/basic_ios.tcc: Same.
2810         * include/std/std_bitset.h: Same.
2811         * include/ext/ropeimpl.h: Same.
2812         * include/bits/stl_vector.h: Same.
2813         * include/bits/stl_deque.h: Same.
2814         * include/bits/stl_bvector.h: Same.
2815         * config/locale/generic/c_locale.cc: Same.
2816         * config/locale/gnu/c_locale.cc: Same.
2817         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2819         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2821 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2823         * include/std/std_streambuf.h (_M_buf_size): is currently
2824         used only for basic_filebuf, therefore move it there.
2825         (basic_streambuf(), ~basic_streambuf()): Adjust.
2826         * include/std/std_fstream.h (_M_buf_size): Moved here.
2827         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2829 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2831         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2832         _M_buf_size (synced input is now correctly dealt with
2833         elsewhere); when the output buffer is full don't fall back
2834         to a snextc-sputc loop, call overflow instead.
2836 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2838         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2839         the innermost 'if' by factoring out some code.
2841 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
2843         * configure.in:  Test for libintl.h.
2844         * include/bits/c++config:  Define __N for everybody.
2845         * include/bits/basic_string.h, include/bits/stl_bvector.h,
2846         include/bits/stl_deque.h, include/bits/stl_vector.h,
2847         include/std/std_bitset.h:  Wrap all __throw* text with __N.
2848         * po/Makefile.am (pot):  New rule, mostly working.
2849         * src/functexcept.cc:  Call gettext on all __throw* arguments when
2850         -fexceptions is in effect.
2851         * po/Makefile.in, config.h.in, configure:  Regenerate.
2853 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
2855         PR libstdc++/9523
2856         * include/bits/ios_base.h (Init::_S_ios_create,
2857         Init::_S_ios_destroy):  Remove declarations.
2858         (Init::_S_create_buffers,
2859         Init::_S_destroy_buffers):  Declare
2860         * src/ios.cc (Init::_S_ios_create):  Remove
2861         (Init::_S_create_buffers):  Create buffers and add to streams.
2862         (Init::_S_ios_destroy):  Rename to...
2863         (Init::_S_destroy_buffers):  this.
2864         (Init::Init):  Only construct streams once.
2865         (Init::~Init):  Flush streams, don't destroy them.
2866         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
2867         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
2868         * testsuite/27_io/objects/char/5.cc:  New test.
2869         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
2870         * testsuite/27_io/objects/char/6.cc:  New test.
2871         * testsuite/27_io/objects/char/7.cc:  New test.
2873 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2875         * testsuite/27_io/objects/char/8.cc:  New test.
2877 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2879         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2880         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2882 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
2884         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2885         _M_destroy_pback. _M_pback_create to
2886         _M_create_pback. _M_underflow_common to
2887         _M_underflow. _M_really_overflow to _M_overflow.
2888         * include/bits/fstream.tcc: Same.
2889         * src/fstream.cc: Same.
2890         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2891         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
2892         * include/bits/streambuf.tcc: Same.
2893         * include/bits/fstream.tcc: Same.
2894         * include/bits/sstream.tcc: Same.
2896 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
2898         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
2899         from fixed size array.
2900         (locale): Change _S_categories as well.
2901         Formatting tweaks.
2902         * include/bits/locale_facets.tcc: Tweak.
2903         * config/locale/gnu/c_locale.cc: Assign _S_categories.
2904         * config/locale/generic/c_locale.cc: Same.
2905         * src/locale.cc: Tweak.
2906         * src/globals.cc: Change facet_name to name_vec, add names_c.
2907         * src/localename.cc: Use them.
2908         (locale::_Impl::~_Impl): Destroy _M_names.
2909         (locale::_Impl::_Impl): Create _M_names.
2911 2003-04-27  Andreas Schwab  <schwab@suse.de>
2913         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2914         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
2916 2003-04-27  Nathan Myers  <ncm@cantrip.org>
2918         Move some basic_string members out of line because
2919         they are too big to reasonably be inline.
2920         * include/bits/basic_string.h
2921         (assign(const basic_string&, size_type, size_type),
2922         assign(const _CharT*, size_type),
2923         insert(size_type, const basic_string&, size_type, size_type),
2924         insert(size_type, const _CharT*, size_type),
2925         replace(size_type, size_type, const _CharT*, size_type)):
2926         Move from here to...
2927         * include/bits/basic_string.tcc: ...here.
2929 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2931         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
2932         the innermost 'if' by factoring out some code.
2934 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2936         * include/bits/streambuf.tcc (__copy_streambufs): Don't
2937         use in_avail(), simplify.
2939 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
2941         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
2942         in basic_stringbuf it's unused.
2944         * include/std/std_sstream.h (underflow): consistently use
2945         _M_in_cur, not gptr().
2947 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
2948             Phil Edwards  <pme@gcc.gnu.org>
2950         * testsuite_flags.in: Guard against the possibility
2951         of having "xgcc" as a part of a folder name in the
2952         path to the GCC build folder.
2953         * testsuite/Makefile.am: Likewise.
2954         * testsuite/Makefile.in: Regenerated.
2956 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
2958         PR libstdc++/10132
2959         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
2960         exception specifications.
2961         (basic_filebuf::close): Same.
2962         (basic_filebuf::_M_pback_destroy): Same.
2963         (basic_filebuf::_M_destroy_internal_buffer): Same.
2964         (basic_filebuf): Remove __res_type typedef.
2965         * src/fstream.cc: Same.
2966         * include/bits/fstream.tcc
2967         (basic_filebuf::_M_convert_to_external): Simplify.
2968         (basic_filebuf::seekoff): Use has_facet before use_facet.
2969         (basic_filebuf::close): Add exception specification of throw().
2970         * testsuite/27_io/basic_filebuf/cons: New.
2971         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
2972         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
2973         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
2974         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
2976 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
2978         * include/bits/locale_classes.h
2979         (locale::_S_extra_categories_size): Remove.
2980         * src/locale.cc: Remove _S_extra_categories_size.
2981         * src/localename.cc: Same.
2982         * config/locale/gnu/c_locale.cc: Same.
2983         * config/locale/generic/c_locale.cc: Same.
2985 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
2987         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
2989 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
2991         * docs/html/17_intro/howto.html:  Update some links.
2992         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
2993         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
2994         * docs/html/ext/howto.html:  Link to demangler notes and API.
2995         * docs/html/faq/index.html:  Remove trailing whitespace.
2996         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
2997         (5.6):  Change to a bulleted list.
2999         * docs/html/faq/index.txt, docs/html/documentation.html,
3000         docs/html/17_intro/porting.html:  Regenerate.
3002 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
3004         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
3005         belongs to basic_filebuf.
3006         * testsuite/27_io/basic_fstream/3.cc: Likewise.
3007         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3008         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
3009         instantiation (now belongs to basic_filebuf).
3010         * testsuite/27_io/basic_iostream/3.cc: Likewise.
3011         * testsuite/27_io/basic_istream/3.cc: Likewise.
3012         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3013         _S_pback_size now belongs to basic_filebuf.
3014         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
3015         instantiation (now belongs to basic_filebuf).
3016         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
3017         belongs to basic_filebuf.
3018         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
3019         instantiation (now belongs to basic_filebuf).
3020         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
3021         _S_pback_size now belongs to basic_filebuf.
3022         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
3023         instantiation (now belongs to basic_filebuf).
3024         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
3025         to basic_filebuf.
3026         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
3027         instantiation (now belongs to basic_filebuf).
3028         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
3030 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
3032         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
3033         * configure: Regenerated.
3035 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
3037         * config/locale/generic/c_locale.h (__convert_from_v): Use
3038         attribute unused.
3040 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
3042         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
3043         implementation only.
3044         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
3045         Comment and change to comply with DR 60 and the effect on gcount().
3046         * include/std/std_istream.h:  Update comments.
3047         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
3048         comments about reasons for tests.  Test sync() against gcount().
3049         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
3050         for effect on gcount().
3051         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
3052         for effect on gcount().
3054 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
3056         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
3057         Adjust timing.
3059 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
3061         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
3062         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3063         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
3064         (basic_streambuf::basic_streambuf()): Adjust.
3065         * include/std/std_fstream.h (_S_pback_size, _M_pback,
3066         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3067         _M_pback_create(), _M_pback_destroy()): Moved here
3068         from basic_streambuf.
3069         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
3070         Adjust.
3071         (basic_filebuf::_S_pback_size): Add declaration.
3072         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
3073         Remove declaration.
3075 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
3077         Consistently use _M_in_beg instead of eback(), _M_in_cur
3078         instead of gptr(), and so on.
3079         * include/bits/fstream.tcc (pbackfail, imbue): Here.
3080         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
3081         * include/bits/streambuf.tcc (sbumpc, sputbackc,
3082         __copy_streambufs): Ditto.
3083         * include/std/std_streambuf.h (sgetc): Ditto.
3085 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
3087         * include/bits/sstream.tcc (pbackfail, overflow):
3088         Formatting fixes.
3090 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
3092         * include/std/std_streambuf.h (uflow()): It's used only by
3093         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
3094         therefore do not consider the _M_buf_unified == true case.
3096         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
3098 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
3100         * docs/html/ext/howto.html ('LWG Issues'):
3101         Add issues 19, 90, 171, 231, 271.
3103 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
3105         * include/bits/sstream.tcc (pbackfail): Remove redundant
3106         NULL pointer check from test involving _M_in_*.
3107         (overflow, seekoff, seekpos): Const qualify bool variables.
3108         * include/std/std_sstream.h (underflow): Remove redundant
3109         NULL pointer check from test involving _M_in_*.
3110         (_M_really_sync): Const qualify bool variables.
3111         * src/fstream.cc (_M_underflow_common): Remove redundant
3112         NULL pointer check from test involving _M_in_*, const qualify
3113         bool variables.
3115         * include/std/std_streambuf.h (sgetc): Remove redundant
3116         variable.
3118 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
3120         According to 5.9 para 2 (second bullet) for pointers p, q
3121         pointing to the same type, with  p == 0 and q == 0, (p < q)
3122         is false.
3123         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
3124         seekoff): Remove redundant NULL pointer checks from tests
3125         involving _M_out_* and _M_in_*, const qualify bool variables.
3126         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
3127         qualify bool variables.
3128         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
3129         Remove redundant NULL pointer checks from tests involving
3130         _M_out_* and _M_in_*, const qualify bool variables.
3131         * include/std/std_fstream.h (sync): Likewise.
3132         (_M_is_indeterminate): Const qualify bool variables.
3133         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
3134         NULL pointer checks from tests involving _M_out_* and _M_in_*,
3135         const qualify bool variables.
3136         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
3137         variables.
3139 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
3141         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
3142         C99 FP macros, if actually captured.
3144         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
3145         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3146         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3147         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3148         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
3149         New macro.
3150         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3151         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3152         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3153         * include/c_std/std_cstdlib.h: Use new macros.
3154         * include/c_std/std_cstdio.h: Use new macros.
3155         * include/c_std/std_cwchar.h: Use new macros.
3157 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
3159         PR libstdc++/9555
3160         * include/bits/ostream.tcc: Catch all exceptions for formatted
3161         output, instead of std::exception and derivatives.
3162         * include/bits/istream.tcc: Same.
3163         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
3164         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
3165         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
3166         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
3167         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3168         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
3169         New.
3171 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
3173         * include/bits/c++config:  Minor cosmetic tweaks.
3175 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
3177         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
3178         * include/Makefile.am (pch_input): Find in ${target_builddir}.
3179         (pch_output): Rename to...
3180         (pch_output_builddir): ..this.  Find in ${target_builddir}.
3181         (pch_source): Tweak.
3182         (pch_build): Key off a built file.
3183         (pch_output rule): Rename to...
3184         (pch_input rule): ...this.  Produce ${pch_output_builddir}
3185         instead of ${pch_output}.
3186         (install-pch rule): Install ${pch_output_builddir}.
3187         * include/Makefile.in: Regenerated.
3189 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
3191         * include/std/std_streambuf.h (setp): _M_out_lim, being
3192         the end limit of used put area, is set equal to _M_out_beg.
3194 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
3196         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
3197         * aclocal.m4: Regenerated.
3198         * configure.in: Remove old demangler bits.
3199         Call pch checks.
3200         * configure: Regenerate.
3201         * config.h.in: Regenerate.
3202         * include/Makefile.am (allstamps): Now allstamped.
3203         (allcreated): Define this.
3204         (all-local): Use 'em.
3205         Conditionally define pch_build, pch_install based on
3206         GLIBCPP_BUILD_PCH.
3207         (${pch_output}): New rule.
3208         (install-pch): New rule.
3209         (install-headers): New rule.
3210         (install-data-local): Install headers and conditionally pch.
3211         * include/Makefile.in: Regenerate.
3212         * testsuite_flags.in (--build-cxx): Use pch file.
3214 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
3216         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
3218 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
3219             Paolo Carlini  <pcarlini at unitus dot it>
3221         PR libstdc++/9423
3222         * docs/html/27_io/howto.html
3223         ('The buffering is screwing up my program!'): Explain that
3224         opening counts as an I/O operation.
3226 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
3228         * testsuite/thread/pthread1.cc: Enable for darwin test.
3229         * testsuite/thread/pthread2.cc: Same.
3230         * testsuite/thread/pthread3.cc: Same.
3231         * testsuite/thread/pthread4.cc: Same.
3232         * testsuite/thread/pthread5.cc: Same.
3233         * testsuite/thread/pthread6.cc: Same.
3235 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
3237         libstdc++/7680
3238         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
3239         Populate it with multiple legal ways to obtain the C99 float
3240         transcendentals.  Use them instead of direct global reference.
3241         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
3242         * docs/html/17_intro/porting.texi
3243         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3244         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3245         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
3246         * config/os/bsd/freebsd/os_defines.h
3247         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3248         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3249         * testsuite/26_numerics/c_math_dynamic.cc: New file.
3251 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
3252             Benjamin Kosnik  <bkoz@redhat.com>
3254         * config/os/generic/ctype_inline.h: Fix.
3256 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
3258         * testsuite/testsuite_hooks.h
3259         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
3260         Change to try_named_locale.
3261         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
3263         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
3264         try_named_locale.
3265         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3266         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3267         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
3268         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
3269         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
3270         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
3271         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
3272         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
3273         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
3274         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
3275         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
3276         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
3277         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
3278         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
3279         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
3280         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3281         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3282         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3283         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
3284         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
3285         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
3286         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
3287         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
3288         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
3289         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
3290         * testsuite/22_locale/collate/compare/char/1.cc: Same.
3291         * testsuite/22_locale/collate/compare/char/2.cc: Same.
3292         * testsuite/22_locale/collate/compare/char/3.cc: Same.
3293         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
3294         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
3295         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
3296         * testsuite/22_locale/collate/hash/char/2.cc: Same.
3297         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
3298         * testsuite/22_locale/collate/transform/char/2.cc: Same.
3299         * testsuite/22_locale/collate/transform/char/3.cc: Same.
3300         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
3301         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
3302         * testsuite/22_locale/collate_byname/1.cc: Same.
3303         * testsuite/22_locale/ctype/is/char/2.cc: Same.
3304         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3305         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
3306         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
3307         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
3308         * testsuite/22_locale/facet/2.cc: Same.
3309         * testsuite/22_locale/locale/cons/2.cc: Same.
3310         * testsuite/22_locale/locale/cons/4.cc: Same.
3311         * testsuite/22_locale/locale/cons/5.cc: Same.
3312         * testsuite/22_locale/locale/cons/7.cc: Same.
3313         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
3314         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
3315         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
3316         * testsuite/22_locale/messages/members/char/1.cc: Same.
3317         * testsuite/22_locale/messages/members/char/2.cc: Same.
3318         * testsuite/22_locale/messages/members/char/3.cc: Same.
3319         * testsuite/22_locale/messages_byname/1.cc: Same.
3320         * testsuite/22_locale/money_get/get/char/1.cc: Same.
3321         * testsuite/22_locale/money_get/get/char/2.cc: Same.
3322         * testsuite/22_locale/money_get/get/char/3.cc: Same.
3323         * testsuite/22_locale/money_get/get/char/4.cc: Same.
3324         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
3325         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
3326         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
3327         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
3328         * testsuite/22_locale/money_put/put/char/1.cc: Same.
3329         * testsuite/22_locale/money_put/put/char/2.cc: Same.
3330         * testsuite/22_locale/money_put/put/char/3.cc: Same.
3331         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
3332         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
3333         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
3334         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
3335         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
3336         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
3337         * testsuite/22_locale/num_get/get/char/1.cc: Same.
3338         * testsuite/22_locale/num_get/get/char/2.cc: Same.
3339         * testsuite/22_locale/num_get/get/char/3.cc: Same.
3340         * testsuite/22_locale/num_get/get/char/5.cc: Same.
3341         * testsuite/22_locale/num_get/get/char/6.cc: Same.
3342         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
3343         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
3344         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
3345         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
3346         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
3347         * testsuite/22_locale/num_put/put/char/1.cc: Same.
3348         * testsuite/22_locale/num_put/put/char/2.cc: Same.
3349         * testsuite/22_locale/num_put/put/char/3.cc: Same.
3350         * testsuite/22_locale/num_put/put/char/5.cc: Same.
3351         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
3352         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
3353         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
3354         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
3355         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
3356         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
3357         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
3358         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
3359         * testsuite/22_locale/numpunct_byname/1.cc: Same.
3360         * testsuite/22_locale/numpunct_byname/2.cc: Same.
3361         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
3362         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
3363         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
3364         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
3365         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
3366         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
3367         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
3368         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
3369         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
3370         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
3371         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
3372         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
3373         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
3374         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
3375         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
3376         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
3377         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
3378         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
3379         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
3380         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
3381         * testsuite/22_locale/time_put/put/char/1.cc: Same.
3382         * testsuite/22_locale/time_put/put/char/2.cc: Same.
3383         * testsuite/22_locale/time_put/put/char/3.cc: Same.
3384         * testsuite/22_locale/time_put/put/char/4.cc: Same.
3385         * testsuite/22_locale/time_put/put/char/5.cc: Same.
3386         * testsuite/22_locale/time_put/put/char/6.cc: Same.
3387         * testsuite/22_locale/time_put/put/char/7.cc: Same.
3388         * testsuite/22_locale/time_put/put/char/8.cc: Same.
3389         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
3390         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
3391         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
3392         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
3393         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
3394         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
3395         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
3396         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
3397         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
3398         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
3399         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
3400         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
3401         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
3403 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
3405         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
3406         solaris includes, not generic.
3408 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
3410         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
3412         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3413         * include/bits/concept_check.h: Fix multi-line comment.
3414         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3415         when target is *-*-freebsd*.
3417 2003-04-14  Nathan Myers  <ncm@cantrip.org>
3418             Paolo Carlini  <pcarlini@unitus.it>
3420         PR libstdc++/9701 (in_avail())
3421         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3422         doesn't care if there is anything in some putback cell.
3423         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
3425         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
3426         unused string literals.
3428 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
3430         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
3431         _M_out_end, _M_set_indeterminate() does it.
3433 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3435         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3437 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
3439         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3440         Change basic_streambuf instantiation to "unsigned char".
3441         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3443 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3445         Remove _M_buf_size_opt, use directly _M_buf_size instead.
3446         * include/bits/fstream.tcc
3447         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3448         references to _M_buf_size_opt.
3449         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3450         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3451         __bufsize to __in_avail and __size_opt to __buf_size.
3452         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3453         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3454         * include/std/std_streambuf.h (~basic_streambuf(),
3455         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3456         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3457         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3458         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3459         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3460         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3461         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3462         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3463         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3464         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3465         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3466         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3467         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3469 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
3471         * include/ext/stdio_filebuf.h
3472         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3473         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3474         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3475         since a stack-based buffer is used for small values of the size_t
3476         parameter.
3477         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3478         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3479         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3481 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3483         PR libstdc++/9533
3484         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3485         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3487 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3489         * testsuite/22_locale/locale/cons/3.cc: Split.
3490         * testsuite/22_locale/locale/cons/7222-c.cc: New.
3491         * testsuite/22_locale/locale/cons/7222-env.cc: New.
3492         Check before trying to create a locale from the environment.
3493         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3494         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3495         Adjust includes.
3497 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3499         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3500         locale to construct this hybrid locale, not the global locale.
3502 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3504         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3505         instantiation for AIX.
3506         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3507         * testsuite/25_algorithms/min_max.cc: Same.
3509 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3511         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3512         twice.  Always set _M_cfile to 0 when stream was open.
3514 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3516         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
3517         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3518         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3519         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3520         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3521         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3522         ifstream_members.cc, instantiations.cc, ios.cc,
3523         ios_base_callbacks.cc, ios_base_members_static-1.tst,
3524         ios_base_members_static.cc, ios_base_storage.cc,
3525         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3526         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3527         iostream.cc, iostream_members.cc, istream.cc,
3528         istream_exception.cc, istream_extractor_char.cc,
3529         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3530         istream_extractor_other-2.tst, istream_extractor_other.cc,
3531         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3532         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3533         istream_sentry.cc, istream_unformatted-1.tst,
3534         istream_unformatted-1.txt, istream_unformatted.cc,
3535         istringstream.cc, istringstream_members.cc,
3536         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3537         ofstream_members.cc, ostream.cc, ostream_exception.cc,
3538         ostream_fail.cc, ostream_inserter_arith.cc,
3539         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3540         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3541         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3542         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3543         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3544         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3545         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3546         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3547         wide_stream_objects.cc, istream_extractor_arith/01.cc,
3548         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3549         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3550         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3551         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3552         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3553         Split into...
3554         * 27_io/basic_filebuf/1.cc: New.
3555         * 27_io/basic_filebuf/2.cc: New.
3556         * 27_io/basic_filebuf/3.cc: New.
3557         * 27_io/basic_filebuf/4.cc: New.
3558         * 27_io/basic_filebuf/close/char/1.cc: New.
3559         * 27_io/basic_filebuf/close/char/2.cc: New.
3560         * 27_io/basic_filebuf/close/char/3.cc: New.
3561         * 27_io/basic_filebuf/close/char/4879.cc: New.
3562         * 27_io/basic_filebuf/close/char/9964.cc: New.
3563         * 27_io/basic_filebuf/imbue/char/1.cc: New.
3564         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3565         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3566         * 27_io/basic_filebuf/is_open/char/1.cc: New.
3567         * 27_io/basic_filebuf/open/char/1.cc: New.
3568         * 27_io/basic_filebuf/open/char/2.cc: New.
3569         * 27_io/basic_filebuf/open/char/3.cc: New.
3570         * 27_io/basic_filebuf/open/char/9507.cc: New.
3571         * 27_io/basic_filebuf/overflow/char/1.cc: New.
3572         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3573         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3574         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3575         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3576         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3577         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3578         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3579         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3580         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3581         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3582         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3583         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3584         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3585         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3586         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3587         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3588         * 27_io/basic_filebuf/snextc/char/1.cc: New.
3589         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3590         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3591         * 27_io/basic_filebuf/sputc/char/1.cc: New.
3592         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3593         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3594         * 27_io/basic_filebuf/sputn/char/1.cc: New.
3595         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3596         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3597         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3598         * 27_io/basic_filebuf/sync/char/1057.cc: New.
3599         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3600         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3601         * 27_io/basic_fstream/1.cc: New.
3602         * 27_io/basic_fstream/2.cc: New.
3603         * 27_io/basic_fstream/3.cc: New.
3604         * 27_io/basic_fstream/4.cc: New.
3605         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3606         * 27_io/basic_ifstream/1.cc: New.
3607         * 27_io/basic_ifstream/2.cc: New.
3608         * 27_io/basic_ifstream/3.cc: New.
3609         * 27_io/basic_ifstream/4.cc: New.
3610         * 27_io/basic_ifstream/cons/char/1.cc: New.
3611         * 27_io/basic_ifstream/open/char/1.cc: New.
3612         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3613         * 27_io/basic_ios/1.cc: New.
3614         * 27_io/basic_ios/2.cc: New.
3615         * 27_io/basic_ios/3.cc: New.
3616         * 27_io/basic_ios/4.cc: New.
3617         * 27_io/basic_ios/clear/char/1.cc: New.
3618         * 27_io/basic_ios/cons/char/1.cc: New.
3619         * 27_io/basic_ios/cons/char/2.cc: New.
3620         * 27_io/basic_ios/cons/char/3.cc: New.
3621         * 27_io/basic_ios/copyfmt/char/1.cc: New.
3622         * 27_io/basic_ios/copyfmt/char/2.cc: New.
3623         * 27_io/basic_ios/exceptions/char/1.cc: New.
3624         * 27_io/basic_ios/locales/char/1.cc: New.
3625         * 27_io/basic_iostream/1.cc: New.
3626         * 27_io/basic_iostream/2.cc: New.
3627         * 27_io/basic_iostream/3.cc: New.
3628         * 27_io/basic_iostream/4.cc: New.
3629         * 27_io/basic_istream/1.cc: New.
3630         * 27_io/basic_istream/2.cc: New.
3631         * 27_io/basic_istream/3.cc: New.
3632         * 27_io/basic_istream/4.cc: New.
3633         * 27_io/basic_istream/exceptions/char/9561.cc: New.
3634         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
3635         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
3636         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
3637         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
3638         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
3639         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
3640         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
3641         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
3642         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
3643         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
3644         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
3645         * 27_io/basic_istream/extractors_character/char/1.cc: New.
3646         * 27_io/basic_istream/extractors_character/char/2.cc: New.
3647         * 27_io/basic_istream/extractors_character/char/3.cc: New.
3648         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
3649         * 27_io/basic_istream/extractors_other/char/1.cc: New.
3650         * 27_io/basic_istream/extractors_other/char/2.cc: New.
3651         * 27_io/basic_istream/extractors_other/char/3.cc: New.
3652         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
3653         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
3654         * 27_io/basic_istream/get/char/1.cc: New.
3655         * 27_io/basic_istream/get/char/2.cc: New.
3656         * 27_io/basic_istream/getline/char/1.cc: New.
3657         * 27_io/basic_istream/getline/char/2.cc: New.
3658         * 27_io/basic_istream/getline/char/3.cc: New.
3659         * 27_io/basic_istream/ignore/char/1.cc: New.
3660         * 27_io/basic_istream/ignore/char/6360.cc: New.
3661         * 27_io/basic_istream/ignore/char/7220.cc: New.
3662         * 27_io/basic_istream/peek/char/1.cc: New.
3663         * 27_io/basic_istream/peek/char/6414.cc: New.
3664         * 27_io/basic_istream/putback/char/1.cc: New.
3665         * 27_io/basic_istream/read/char/1.cc: New.
3666         * 27_io/basic_istream/read/char/2.cc: New.
3667         * 27_io/basic_istream/read/char/3.cc: New.
3668         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
3669         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
3670         * 27_io/basic_istream/readsome/char/8258.cc: New.
3671         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
3672         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
3673         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
3674         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
3675         * 27_io/basic_istream/seekg/char/fstream.cc: New.
3676         * 27_io/basic_istream/seekg/char/sstream.cc: New.
3677         * 27_io/basic_istream/sentry/char/1.cc: New.
3678         * 27_io/basic_istream/sentry/char/2.cc: New.
3679         * 27_io/basic_istream/sentry/char/3.cc: New.
3680         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
3681         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
3682         * 27_io/basic_istream/tellg/char/1.cc: New.
3683         * 27_io/basic_istream/tellg/char/8348.cc: New.
3684         * 27_io/basic_istream/tellg/char/fstream.cc: New.
3685         * 27_io/basic_istream/tellg/char/sstream.cc: New.
3686         * 27_io/basic_istream/ws/char/1.cc: New.
3687         * 27_io/basic_istringstream/1.cc: New.
3688         * 27_io/basic_istringstream/2.cc: New.
3689         * 27_io/basic_istringstream/3.cc: New.
3690         * 27_io/basic_istringstream/4.cc: New.
3691         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
3692         * 27_io/basic_istringstream/str/char/1.cc: New.
3693         * 27_io/basic_ofstream/1.cc: New.
3694         * 27_io/basic_ofstream/2.cc: New.
3695         * 27_io/basic_ofstream/3.cc: New.
3696         * 27_io/basic_ofstream/4.cc: New.
3697         * 27_io/basic_ofstream/cons/char/2.cc: New.
3698         * 27_io/basic_ofstream/open/char/1.cc: New.
3699         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
3700         * 27_io/basic_ostream/1.cc: New.
3701         * 27_io/basic_ostream/2.cc: New.
3702         * 27_io/basic_ostream/3.cc: New.
3703         * 27_io/basic_ostream/4.cc: New.
3704         * 27_io/basic_ostream/cons/char/9827.cc: New.
3705         * 27_io/basic_ostream/endl/char/1.cc: New.
3706         * 27_io/basic_ostream/ends/char/1.cc: New.
3707         * 27_io/basic_ostream/ends/char/2.cc: New.
3708         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
3709         * 27_io/basic_ostream/flush/char/1.cc: New.
3710         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
3711         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
3712         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
3713         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
3714         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
3715         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
3716         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
3717         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
3718         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
3719         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
3720         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
3721         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
3722         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
3723         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
3724         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
3725         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
3726         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
3727         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
3728         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
3729         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
3730         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
3731         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
3732         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
3733         * 27_io/basic_ostream/sentry/char/1.cc: New.
3734         * 27_io/basic_ostream/sentry/char/2.cc: New.
3735         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
3736         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
3737         * 27_io/basic_ostream/tellp/char/1.cc: New.
3738         * 27_io/basic_ostream/tellp/char/2.cc: New.
3739         * 27_io/basic_ostringstream/1.cc: New.
3740         * 27_io/basic_ostringstream/2.cc: New.
3741         * 27_io/basic_ostringstream/3.cc: New.
3742         * 27_io/basic_ostringstream/4.cc: New.
3743         * 27_io/basic_ostringstream/cons/char/3.cc: New.
3744         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
3745         * 27_io/basic_ostringstream/str/char/1.cc: New.
3746         * 27_io/basic_ostringstream/str/char/2.cc: New.
3747         * 27_io/basic_streambuf/1.cc: New.
3748         * 27_io/basic_streambuf/2.cc: New.
3749         * 27_io/basic_streambuf/3.cc: New.
3750         * 27_io/basic_streambuf/cons/char/1.cc: New.
3751         * 27_io/basic_streambuf/imbue/char/1.cc: New.
3752         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
3753         * 27_io/basic_streambuf/overflow/char/1.cc: New.
3754         * 27_io/basic_streambuf/overflow/char/2.cc: New.
3755         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
3756         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
3757         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
3758         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
3759         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
3760         * 27_io/basic_streambuf/sputn/char/1.cc: New.
3761         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
3762         * 27_io/basic_streambuf/sync/char/1057.cc: New.
3763         * 27_io/basic_stringbuf/1.cc: New.
3764         * 27_io/basic_stringbuf/2.cc: New.
3765         * 27_io/basic_stringbuf/3.cc: New.
3766         * 27_io/basic_stringbuf/4.cc: New.
3767         * 27_io/basic_stringbuf/5.cc: New.
3768         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
3769         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
3770         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
3771         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
3772         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
3773         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
3774         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
3775         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
3776         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
3777         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
3778         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
3779         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
3780         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
3781         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
3782         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
3783         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
3784         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
3785         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
3786         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
3787         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
3788         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
3789         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
3790         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
3791         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
3792         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
3793         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
3794         * 27_io/basic_stringbuf/str/char/1.cc: New.
3795         * 27_io/basic_stringbuf/str/char/2.cc: New.
3796         * 27_io/basic_stringbuf/str/char/3.cc: New.
3797         * 27_io/basic_stringbuf/str/char/3955.cc: New.
3798         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
3799         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
3800         * 27_io/basic_stringstream/1.cc: New.
3801         * 27_io/basic_stringstream/2.cc: New.
3802         * 27_io/basic_stringstream/3.cc: New.
3803         * 27_io/basic_stringstream/4.cc: New.
3804         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
3805         * 27_io/basic_stringstream/str/char/1.cc: New.
3806         * 27_io/basic_stringstream/str/char/2.cc: New.
3807         * 27_io/basic_stringstream/str/char/3.cc: New.
3808         * 27_io/basic_stringstream/str/char/4.cc: New.
3809         * 27_io/fpos/1.cc: New.
3810         * 27_io/fpos/2.cc: New.
3811         * 27_io/fpos/3.cc: New.
3812         * 27_io/ios_base/callbacks/1.cc: New.
3813         * 27_io/ios_base/state/1.cc: New.
3814         * 27_io/ios_base/storage/1.cc: New.
3815         * 27_io/ios_base/storage/2.cc: New.
3816         * 27_io/ios_base/storage/3.cc: New.
3817         * 27_io/ios_base/sync_with_stdio/1.cc: New.
3818         * 27_io/ios_base/sync_with_stdio/2.cc: New.
3819         * 27_io/manipulators/adjustfield/char/1.cc: New.
3820         * 27_io/manipulators/adjustfield/char/2.cc: New.
3821         * 27_io/manipulators/basefield/char/1.cc: New.
3822         * 27_io/manipulators/standard/char/1.cc: New.
3823         * 27_io/manipulators/standard/char/2.cc: New.
3824         * 27_io/objects/char/1.cc: New.
3825         * 27_io/objects/char/2.cc: New.
3826         * 27_io/objects/char/2523-1_xin.cc: New.
3827         * 27_io/objects/char/2523-1_xin.in: New.
3828         * 27_io/objects/char/2523-2_xin.cc: New.
3829         * 27_io/objects/char/2523-2_xin.in: New.
3830         * 27_io/objects/char/3045.cc: New.
3831         * 27_io/objects/char/3647.cc: New.
3832         * 27_io/objects/char/3_xin.cc: New.
3833         * 27_io/objects/char/3_xin.in: New.
3834         * 27_io/objects/char/4_xin.cc: New.
3835         * 27_io/objects/char/4_xin.in: New.
3836         * 27_io/objects/char/5268.cc: New.
3837         * 27_io/objects/char/5280_xin.cc: New.
3838         * 27_io/objects/char/5280_xin.in: New.
3839         * 27_io/objects/char/6548_xin.cc: New.
3840         * 27_io/objects/char/6548_xin.in: New.
3841         * 27_io/objects/char/6648-1_xin.cc: New.
3842         * 27_io/objects/char/6648-1_xin.in: New.
3843         * 27_io/objects/char/6648-2_xin.cc: New.
3844         * 27_io/objects/char/6648-2_xin.in: New.
3845         * 27_io/objects/char/7744_xin.cc: New.
3846         * 27_io/objects/char/7744_xin.in: New.
3847         * 27_io/objects/wchar_t/1.cc: New.
3848         * 27_io/types/1.cc: New.
3849         * 27_io/types/2.cc: New.
3850         * data/filebuf_members-1.tst: New.
3851         * data/filebuf_members-1.txt: New.
3852         * data/filebuf_virtuals-1.tst: New.
3853         * data/filebuf_virtuals-1.txt: New.
3854         * data/filebuf_virtuals-2.tst: New.
3855         * data/filebuf_virtuals-3.tst: New.
3856         * data/ifstream_members-1.tst: New.
3857         * data/ifstream_members-1.txt: New.
3858         * data/ios_base_members_static-1.tst: New.
3859         * data/istream_extractor_other-1.tst: New.
3860         * data/istream_extractor_other-1.txt: New.
3861         * data/istream_extractor_other-2.tst: New.
3862         * data/istream_seeks-1.tst: New.
3863         * data/istream_seeks-1.txt: New.
3864         * data/istream_seeks-2.tst: New.
3865         * data/istream_seeks-3.tst: New.
3866         * data/istream_unformatted-1.tst: New.
3867         * data/istream_unformatted-1.txt: New.
3868         * data/ofstream_members-1.tst: New.
3869         * data/ostream_inserter_char-1.tst: New.
3870         * data/ostream_inserter_char-1.txt: New.
3871         * data/ostream_inserter_other-1.tst: New.
3872         * data/ostream_inserter_other-2.tst: New.
3873         * data/ostream_seeks-1.tst: New.
3875 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3877         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
3878         requirement that __mode must be strict input or output.
3880         * include/std/std_streambuf.h (basic_streambuf::setp): Set
3881         _M_out_lim.
3883         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
3884         output string shouldn't core.
3885         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
3886         type.
3887         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
3889         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
3890         zero.
3892 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3894         * testsuite/data: New directory.
3895         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3896         to copy files from the testsuite data directory.
3897         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
3898         testfiles containing _xin, which now means this is an interactive
3899         test and should be run with the interactive dejagnu hooks.
3900         * testsuite/Makefile.am: Remove testsuite_* files.
3901         * testsuite/Makefile.in: Regenerate.
3903 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
3905         * docs/html/install.html: Document complete list of locales
3906         required by test suite.  Document procedure for installing
3907         said locales under Debian.  Solicit instructions for other
3908         operating systems.
3910 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
3912         * include/bits/sstream.tcc (overflow): Make sure operands of min
3913         and max have the same type.
3915 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
3917         PR libstdc++/10276
3918         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
3919         initialization.
3921 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
3923         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
3924         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3925         Don't set _M_out_end.
3926         (basic_filebuf::overflow): Replace _M_out_buf_size() with
3927         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
3928         * include/bits/sstream.tcc (basic_stringbuf::overflow):
3929         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
3930         * include/bits/streambuf.tcc (basic_streambuf::sputc):
3931         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
3932         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
3933         _M_out_end - _M_out_cur.
3934         (__copy_streambufs): Likewise.
3935         * include/std/std_fstream.h (_M_set_determinate): Set
3936         _M_out_end here.
3938 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
3940         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
3941         _M_convert_to_external, _M_really_overflow, seekoff): Fix
3942         test for synced buffer.
3943         * include/std/std_fstream.h (sync): Likewise.
3944         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3945         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
3947 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
3949         * include/std/std_sstream.h (basic_istringstream): Adjust
3950         initialization.
3951         (basic_ostringstream): Same.
3952         (basic_stringstream): Same.
3953         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
3954         (basic_ofstream): Same.
3955         (basic_fstream): Same.
3956         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
3957         that does not call init.
3958         * include/std/std_istream.h (basic_istream): Same.
3959         (basic_iostream): Construct istream, ostream uninitialized, use
3960         init to initialize just once. Add protected ctor that does not
3961         call init.
3963 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
3964             Nathan Myers  <ncm@cantrip.org>
3966         PR libstdc++/9533
3967         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
3968         call underflow().
3969         (basic_filebuf<>::showmanyc): Use the information provided
3970         by codecvt and __basic_file<>::showmanyc_helper to implement
3971         a non-trivial showmanyc.
3972         * config/io/basic_file_stdio.h
3973         (__basic_file<>::showmanyc_helper): New, declare.
3974         * config/io/basic_file_stdio.cc
3975         (__basic_file<>::showmanyc_helper): Define.
3976         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
3977         (__basic_file<char>::open): Don't call fcntl().
3978         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
3979         GLIBCPP_CHECK_POLL): New macros.
3980         * configure.in: Call here.
3981         * acconfig.h: Add #undefs for the corresponding symbols.
3982         * aclocal.m4: Regenerate.
3983         * configure: Regenerate.
3984         * config.h.in: Regenerate.
3986 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
3988         * config/linker-map.gnu: Remove string export restrictions.
3990 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
3992         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
3993         find_first_of, find_last_of and find_last_not_of tests.
3994         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
3995         tests here, new file.
3996         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
3997         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
3998         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
3999         wchar_t find_first_of tests here, new file.
4000         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
4001         tests here.
4002         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
4003         tests here.
4004         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
4005         wchar_t find_last_of tests here.
4006         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
4007         wchar_t find_last_not_of tests here.
4009 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
4011         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
4012         Correct return value.
4014 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
4016         PR libstdc++/5730
4017         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
4018         * include/std/std_complex.h (norm):  Use faster,
4019         less accurate computation for builtin float types under --fast-math.
4021 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
4023         * testsuite/testsuite_hooks.h: Fix warning nits.
4025 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
4027         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
4028         Only .set mips2 for the o32 ABI.
4030 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
4032         * testsuite/21_strings/char_traits/requirements/char/1.cc:
4033         Test char not wchar_t.
4035 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
4037         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
4038         Correct size, taking into account sizeof(wchar_t).
4040 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
4042         Reshuffle 21_strings testsuite.
4043         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
4044         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
4045         element_access.cc, operations.cc, char_traits_requirements.cc,
4046         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
4047         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
4048         wchar_t tests as follows.
4049         * 21_strings/basic_string/append/char/1.cc: New.
4050         * 21_strings/basic_string/append/wchar_t/1.cc: New.
4051         * 21_strings/basic_string/assign/char/1.cc: New.
4052         * 21_strings/basic_string/assign/char/2.cc: New.
4053         * 21_strings/basic_string/assign/char/3.cc: New.
4054         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
4055         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
4056         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
4057         * 21_strings/basic_string/capacity/1.cc: New.
4058         * 21_strings/basic_string/capacity/char/1.cc: New.
4059         * 21_strings/basic_string/capacity/char/2.cc: New.
4060         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
4061         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
4062         * 21_strings/basic_string/compare/char/1.cc: New.
4063         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
4064         * 21_strings/basic_string/cons/char/1.cc: New.
4065         * 21_strings/basic_string/cons/char/2.cc: New.
4066         * 21_strings/basic_string/cons/char/3.cc: New.
4067         * 21_strings/basic_string/cons/char/4.cc: New.
4068         * 21_strings/basic_string/cons/char/5.cc: New.
4069         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
4070         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
4071         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
4072         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
4073         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
4074         * 21_strings/basic_string/element_access/char/1.cc: New.
4075         * 21_strings/basic_string/element_access/char/2.cc: New.
4076         * 21_strings/basic_string/element_access/char/3.cc: New.
4077         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
4078         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
4079         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
4080         * 21_strings/basic_string/find/char/1.cc: New.
4081         * 21_strings/basic_string/find/wchar_t/1.cc: New.
4082         * 21_strings/basic_string/insert/char/1.cc: New.
4083         * 21_strings/basic_string/insert/char/2.cc: New.
4084         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
4085         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
4086         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
4087         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
4088         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
4089         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
4090         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
4091         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
4092         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
4093         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
4094         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
4095         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
4096         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
4097         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
4098         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
4099         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
4100         * 21_strings/basic_string/operators/char/1.cc: New.
4101         * 21_strings/basic_string/operators/char/2.cc: New.
4102         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
4103         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
4104         * 21_strings/basic_string/replace/char/1.cc: New.
4105         * 21_strings/basic_string/replace/char/2.cc: New.
4106         * 21_strings/basic_string/replace/char/3.cc: New.
4107         * 21_strings/basic_string/replace/char/4.cc: New.
4108         * 21_strings/basic_string/replace/char/5.cc: New.
4109         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
4110         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
4111         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
4112         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
4113         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
4114         * 21_strings/basic_string/rfind/char/1.cc: New.
4115         * 21_strings/basic_string/rfind/char/2.cc: New.
4116         * 21_strings/basic_string/rfind/char/3.cc: New.
4117         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
4118         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
4119         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
4120         * 21_strings/basic_string/substr/char/1.cc: New.
4121         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
4122         * 21_strings/c_strings/char/1.cc: New.
4123         * 21_strings/c_strings/char/2.cc: New.
4124         * 21_strings/c_strings/wchar_t/1.cc: New.
4125         * 21_strings/c_strings/wchar_t/2.cc: New.
4126         * 21_strings/char_traits/requirements/char/1.cc: New.
4127         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
4128         * 21_strings/char_traits/typedefs/char/1.cc: New.
4130 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
4131             Petur Runolfsson  <peturr02@ru.is>
4133         PR libstdc++/10097
4134         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4135         basic_filebuf<wchar_t>::_M_underflow_common):
4136         if (gptr() < egptr()) return *gptr().
4137         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
4139         * testsuite/27_io/filebuf_members.cc (test_04): Minor
4140         changes: unlink fifo before making it, fix spelling error.
4142 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
4144         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
4145         * testsuite/Makefile.in: Regenerate.
4146         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
4147         Cleanups.
4149 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
4151         PR libstdc++/9964
4152         * include/bits/fstream.tcc (basic_filebuf::close):
4153         Always close file, even when write fails.
4154         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
4156 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
4158         * libsupc++/Makefile.am (C_COMPILE): Remove.
4159         (LTCOMPILE): Likewise.
4160         * libsupc++/Makefile.in: Regenerate.
4162 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
4164         * testsuite/23_containers/bitset_members.cc: Add test variable.
4165         * testsuite/23_containers/map_insert.cc: Same.
4166         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
4167         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
4168         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4169         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4170         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4171         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
4172         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
4173         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4174         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4175         * testsuite/27_io/istream_exception.cc: Same.
4176         * testsuite/27_io/filebuf_virtuals.cc: Same.
4177         * testsuite/27_io/stringbuf_virtuals.cc: Same.
4178         * testsuite/27_io/ostream_inserter_arith.cc: Same.
4179         * testsuite/26_numerics/valarray_operators.cc: Same.
4180         * testsuite/26_numerics/slice.cc: Same.
4181         * testsuite/26_numerics/slice_array_assignment.cc: Same.
4182         * testsuite/24_iterators/istream_iterator.cc: Same.
4183         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
4185 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
4187         PR libstdc++/9581
4188         PR libstdc++/9870
4189         * config/locale/generic/ctype_members.cc,
4190         * config/locale/gnu/ctype_members.cc
4191         (ctype<wchar_t>::do_widen(char)):  Cast argument to
4192         unsigned char before passing to btowc.
4193         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
4194         Convert characters with btowc instead of mbsrtowcs.
4195         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
4196         char, char*):
4197         Convert characters with wctob instead of wcsrtombs.
4198         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
4199         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
4200         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
4202 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
4204         * include/stdc++.h: New.
4205         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
4206         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
4207         * include/Makefile.in: Regenerate.
4208         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
4209         (--cxxflags): Put -g -O2 here.
4210         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
4212 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
4214         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
4215         missing named locale.
4217 2003-03-14  Andreas Schwab  <schwab@suse.de>
4219         * configure.in: Only append to makefiles that are newly created to
4220         avoid multiple multi-do/multi-clean rules.
4221         * configure: Rebuilt.
4223 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
4225         * docs/html/configopts.html, docs/html/documentation.html,
4226         docs/html/explanations.html, docs/html/install.html,
4227         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
4228         invalid XHTML and make page header style consistent.
4230 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
4232         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
4233         * docs/html/faq/index.txt: Regenerate.
4234         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
4236 2003-03-12  Andreas Schwab  <schwab@suse.de>
4238         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
4239         glibcpp_toolexeclibdir.
4240         * aclocal.m4, configure: Rebuilt.
4242 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
4244         * docs/html/faq/index.html: Update text about location of headers.
4245         * docs/html/faq/index.txt: Regenerate.
4247 2003-03-11  Carlo Wood  <carlo@alinoe.com>
4249         * include/bits/demangle.h: Prepend accessors of
4250         class qualifier with 'get_' in order to fix warnings
4251         when compiling with -Wshadow.
4253 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
4255         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
4256         when so installed.
4257         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
4259         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
4260         report lack of setenv().
4262 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
4264         * config/io/basic_file_stdio.cc: include <unistd.h>.
4266 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
4267             Nathan Myers  <ncm@cantrip.org>
4269         PR libstdc++/7744
4270         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
4271         seekoff, seekpos): Add a boolean parameter __stdio.
4272         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
4273         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
4274         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
4275         respectively).
4276         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
4277         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
4278         * include/std/std_fstream.h (sync): Likewise.
4279         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
4280         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
4281         libstdc++/8399 commit involving isatty(0).
4282         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
4283         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
4284         * configure.in: Remove call.
4285         * aclocal.m4: Regenerate.
4286         * config.h.in: Regenerate.
4287         * configure: Regenerate.
4288         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
4290 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
4292         PR libstdc++/9988
4293         * include/bits/fstream.tcc (overflow): don't write EOF to file.
4294         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
4296 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
4298         PR libstdc++/9561
4299         * include/bits/basic_ios.h (_M_setstate): New.
4300         * include/bits/ostream.tcc (operator<<): Use it.
4301         * include/bits/istream.tcc (operator>>): Use it.
4302         * include/std/std_ostream.h (operator<<): Make friends.
4303         * include/std/std_istream.h (operator>>): Make friends.
4304         * testsuite/27_io/ostream_exception.cc,
4305         testsuite/27_io/istream_exception.cc: New tests.
4307 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
4309         * include/bits/locale_facets.tcc: Fix typo.
4311 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
4313         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
4315         * config/locale/generic/c_locale.cc
4316         (locale::facet::_S_create_c_locale): Throw runtime exception when
4317         unsupported language is specified.
4318         * testsuite/testsuite_hooks.h
4319         (run_test_wrapped_generic_locale_exception_catcher): New function.
4320         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
4321         Suppress runtime exception thrown by generic implementation.
4322         (run_tests_wrapped_env): Likewise.
4323         (run_test_wrapped_generic_locale_exception_catcher): New function.
4324         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
4325         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
4326         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
4327         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
4328         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
4329         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
4330         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
4331         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
4332         * testsuite/22_locale/facet/2.cc: New test wrap.
4333         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
4334         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
4335         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
4336         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
4337         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
4338         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
4339         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
4340         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
4341         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
4342         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
4343         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
4344         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
4345         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
4346         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
4347         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
4348         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
4349         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
4350         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
4351         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
4352         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
4353         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
4354         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
4355         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
4356         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
4357         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
4358         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
4359         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
4360         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
4361         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
4362         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
4363         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
4364         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
4365         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
4366         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
4367         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
4368         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
4369         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
4370         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
4371         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
4372         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
4373         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
4374         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
4375         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
4376         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
4377         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
4378         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
4379         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
4380         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
4381         * testsuite/27_io/ios_members.cc: New test wrap.
4382         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
4383         New test wrap.
4384         * testsuite/27_io/streambuf_members.cc: New test wrap.
4385         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
4387 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
4388             Petur Runolfsson  <peturr02@ru.is>
4390         PR libstdc++/9424
4391         * include/bits/streambuf.tcc (__copy_streambufs): Use
4392         sgetn-sputn only when sputn cannot fail, otherwise fall back
4393         to safe snextc-sputc.
4394         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
4396 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
4398         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
4399         locale cache for truename and falsename.
4401 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
4403         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
4404         _M_word_size initialization.
4406 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
4408         * include/bits/fstream.tcc (_M_convert_to_external):
4409         Set __elen to zero if codecvt::out eventually fails.
4411 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
4413         PR libstdc++/9182
4414         * include/bits/fstream.tcc (_M_really_overflow): Check
4415         for _M_convert_to_external possible failures.
4416         * include/std/std_fstream.h (sync): Check _M_really_overflow
4417         return value and return -1 in case of failure.
4418         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
4420 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
4422         PR libstdc++/9826
4423         * include/bits/istream.tcc (operator>>(_CharT*),
4424         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
4425         * testsuite/27_io/stringstream.cc (test02): Add.
4427         * include/bits/istream.tcc (operator>>(_CharT*)):
4428         Assign a char_type to *__s.
4430 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
4432         PR libstdc++/9817
4433         * include/bits/locale_facets.tcc
4434         (collate::do_compare, collate::do_transform):
4435         Handle nul characters in input.
4436         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
4437         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
4438         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
4439         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
4441 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
4443         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
4444         sputn fails.
4445         * testsuite/27_io/ostream_fail.cc: New test.
4447 2003-03-07  Matthias Klose  <doko@debian.org>
4449         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
4450         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
4451         * Makefile.in: Regenerate.
4452         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
4453         of gxx_include_dir.
4454         AM_MAKEFLAGS: Pass gxx_include_dir.
4455         * libsupc++/Makefile.in: Regenerate.
4457 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
4459         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
4460         mask.  Test setting small-numbered pword and iword slots.  Test
4461         behavior at limit of numeric_limits::max.  Check that values are
4462         still good after failures.
4464 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
4466         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
4467         (ios_base::ios_base): Set _M_word, _M_word_size.
4468         (ios_base::~ios_base): Remove redundant test.
4469         * testsuite/27_io/ios_base_storage.cc (test03): New.
4471 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
4473         * src/strstream.cc, include/bits/basic_string.tcc: Remove
4474         incorrect whitespace added in my previous change.
4476 2003-03-05  Carlo Wood  <carlo@alinoe.com>
4478         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
4479         _S_initialized() in order to allow debugging libraries to detect
4480         when the std streams are initialized from an overloaded operator
4481         new.
4483 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
4485         * libsupc++/demangle.h: Move to..
4486         * include/bits/demangle.h: ...here.
4487         * src/demangle.cc: Adjust include.
4488         * include/Makefile.am (bits_headers): Add.
4489         * include/Makefile.in: Regenerate.
4491 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4493         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
4495         * config/linker-map.gnu: Filter typeinfo and vtable info.
4497 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
4499         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
4500         new failure.  Throw exception if badbit and exception mask when ix
4501         >= numeric_limits<int>::max().
4503 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
4505         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
4506         min and max have the same type.
4507         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
4509 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4511         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
4512         * include/Makefile.in: Regenerate.
4514 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
4516         * testsuite/abi_check.cc (report_symbol_info): Add version info.
4518         * config/linker-map.gnu: Hide more stuff.
4519         * include/Makefile.am: Cleanups.
4520         * include/Makefile.in: Regenerate.
4522 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
4524         * config/locale/generic/messages_members.h (messages::messages):
4525         Remove name from unused parameter.
4527 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4529         * src/Makefile.am (sources): Add demangle.cc.
4530         (demangle.o): Add.
4531         (demangle.lo): Add.
4532         * src/Makefile.in: Regenerate.
4533         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
4534         * libsupc++/Makefile.in: Regenerate.
4536         * testsuite/testsuite_hooks.h
4537         (__gnu_cxx_test::verify_demangle): New.
4538         * testsuite/testsuite_hooks.cc: Define.
4540 2003-02-27  Carlo Wood  <carlo@alinoe.com>
4542         * src/demangle.cc: New.
4543         * libsupc++/demangle.h: New.
4545 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4546             Carlo Wood  <carlo@alinoe.com>
4548         * testsuite/demangle/abi_examples/01.cc: New.
4549         * testsuite/demangle/abi_examples/02.cc: New.
4550         * testsuite/demangle/abi_examples/03.cc: New.
4551         * testsuite/demangle/abi_examples/04.cc: New.
4552         * testsuite/demangle/abi_examples/05.cc: New.
4553         * testsuite/demangle/abi_examples/06.cc: New.
4554         * testsuite/demangle/abi_examples/07.cc: New.
4555         * testsuite/demangle/abi_examples/08.cc: New.
4556         * testsuite/demangle/abi_examples/09.cc: New.
4557         * testsuite/demangle/abi_examples/10.cc: New.
4558         * testsuite/demangle/abi_examples/11.cc: New.
4559         * testsuite/demangle/abi_examples/12.cc: New.
4560         * testsuite/demangle/abi_examples/13.cc: New.
4561         * testsuite/demangle/abi_examples/14.cc: New.
4562         * testsuite/demangle/abi_examples/15.cc: New.
4563         * testsuite/demangle/abi_examples/16.cc: New.
4564         * testsuite/demangle/abi_examples/17.cc: New.
4565         * testsuite/demangle/abi_examples/18.cc: New.
4566         * testsuite/demangle/abi_examples/19.cc: New.
4567         * testsuite/demangle/abi_examples/20.cc: New.
4568         * testsuite/demangle/abi_examples/21.cc: New.
4569         * testsuite/demangle/abi_examples/22.cc: New.
4570         * testsuite/demangle/abi_examples/23.cc: New.
4571         * testsuite/demangle/abi_examples/24.cc: New.
4572         * testsuite/demangle/abi_examples/25.cc: New.
4573         * testsuite/demangle/abi_examples/26.cc: New.
4574         * testsuite/demangle/abi_text/01.cc: New.
4575         * testsuite/demangle/abi_text/02.cc: New.
4576         * testsuite/demangle/abi_text/03.cc: New.
4577         * testsuite/demangle/abi_text/04.cc: New.
4578         * testsuite/demangle/abi_text/05.cc: New.
4579         * testsuite/demangle/abi_text/06.cc: New.
4580         * testsuite/demangle/abi_text/07.cc: New.
4581         * testsuite/demangle/abi_text/08.cc: New.
4582         * testsuite/demangle/abi_text/09.cc: New.
4583         * testsuite/demangle/abi_text/10.cc: New.
4584         * testsuite/demangle/abi_text/11.cc: New.
4585         * testsuite/demangle/abi_text/12.cc: New.
4586         * testsuite/demangle/abi_text/13.cc: New.
4587         * testsuite/demangle/abi_text/14.cc: New.
4588         * testsuite/demangle/regression/3111-1.cc: New.
4589         * testsuite/demangle/regression/3111-2.cc: New.
4590         * testsuite/demangle/regression/7986-01.cc: New.
4591         * testsuite/demangle/regression/7986-02.cc: New.
4592         * testsuite/demangle/regression/7986-03.cc: New.
4593         * testsuite/demangle/regression/7986-04.cc: New.
4594         * testsuite/demangle/regression/7986-05.cc: New.
4595         * testsuite/demangle/regression/7986-06.cc: New.
4596         * testsuite/demangle/regression/7986-07.cc: New.
4597         * testsuite/demangle/regression/7986-08.cc: New.
4598         * testsuite/demangle/regression/7986-09.cc: New.
4599         * testsuite/demangle/regression/7986-10.cc: New.
4600         * testsuite/demangle/regression/7986-11.cc: New.
4601         * testsuite/demangle/regression/7986-12.cc: New.
4602         * testsuite/demangle/regression/7986.cc: New.
4603         * testsuite/demangle/regression/8897.cc: New.
4604         * testsuite/demangle/regression/cw-01.cc: New.
4605         * testsuite/demangle/regression/cw-02.cc: New.
4606         * testsuite/demangle/regression/cw-03.cc: New.
4607         * testsuite/demangle/regression/cw-04.cc: New.
4608         * testsuite/demangle/regression/cw-05.cc: New.
4609         * testsuite/demangle/regression/cw-06.cc: New.
4610         * testsuite/demangle/regression/cw-07.cc: New.
4611         * testsuite/demangle/regression/cw-08.cc: New.
4612         * testsuite/demangle/regression/cw-09.cc: New.
4613         * testsuite/demangle/regression/cw-10.cc: New.
4614         * testsuite/demangle/regression/cw-11.cc: New.
4615         * testsuite/demangle/regression/cw-12.cc: New.
4616         * testsuite/demangle/regression/cw-13.cc: New.
4617         * testsuite/demangle/regression/cw-14.cc: New.
4618         * testsuite/demangle/regression/old.cc: New.
4620 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
4622         * docs/doxygen/Intro.3:  Update with new (proper) names.
4623         * docs/doxygen/TODO:  Update.
4624         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
4625         Fake entries for standard typedefs.
4626         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
4627         * docs/html/documentation.html:  Top-level man page is now called
4628         C++Intro.
4629         * include/std/std_limits.h:  Doxygenate.
4631 2003-02-25  Scott Snyder  <snyder@fnal.gov>
4633         PR libstdc++/9811
4634         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
4635         Correct documentation.
4636         * include/bits/stl_multimap.h (lower_bound, upper_bound,
4637         equal_range): Likewise.
4639 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
4641         PR libstdc++/9825
4642         * src/fstream.cc
4643         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
4644         __bump is true (uflow), always increment the read pointer
4645         (_M_in_cur) before returning successfully.
4646         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
4648 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
4649             Nathan Myers <ncm@cantrip.org>
4651         PR libstdc++/9404, PR libstdc++/9701 (partial)
4652         (aka pptr == epptr implies overflow)
4653         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4654         Consistently, _M_out_end points to the end of the buffer just
4655         created.
4656         (overflow): Tweak to use _M_out_buf_size().
4657         (_M_convert_to_external): The role of the old _M_out_end is
4658         now played by _M_out_lim.
4659         (_M_really_overflow): Likewise.
4660         (seekoff): Likewise.
4661         (setbuf): _M_out_end points to the end of the external buffer.
4662         * include/bits/sstream.tcc (overflow): Rewrote, taking into
4663         account the resolution of DR 169 (TC).
4664         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
4665         (seekpos): Use _M_string.capacity(); tweak.
4666         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
4667         * include/std/std_fstream.h (sync): The role of the old
4668         _M_out_end is now played by _M_out_lim.
4669         (_M_set_indeterminate): Use _M_set_determinate.
4670         (_M_set_determinate): _M_out_end is now _M_out_lim.
4671         (_M_is_indeterminate): Likewise.
4672         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
4673         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
4674         which have the information readily available as _M_string.capacity();
4675         for ate and app modes, pass the string size to _M_really_sync.
4676         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
4677         point to the end of the buffer (i.e., epptr) and to the string end,
4678         respectively.
4679         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
4680         which points to the right limit of the used put area.
4681         (_M_out_cur_move): The role of the old _M_out_end is now played
4682         by _M_out_lim.
4683         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
4684         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
4685         of the standard.
4686         (basic_streambuf()): Initialize _M_out_lim too.
4687         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
4688         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
4689         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
4691 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
4693         * testsuite/27_io/ios_base_storage.cc (main): Call
4694         set_memory_limits.
4696 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
4698         * include/bits/locale_facets.tcc (_M_convert_float): Replace
4699         numpunct facet accesses with data from __locale_cache.
4701 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
4703         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
4704         * docs/html/faq/index.txt:  Regenerate.
4706 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
4708         * config/linker-map.gnu:  Also export locking symbols needed for the
4709         generic atomicity.h case.
4711 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
4713         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4714         config.status.
4715         * configure: Rebuilt.
4717 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
4719         * include/bits/sstream.tcc (overflow): According to
4720         27.7.1.3, p5, actual output is performed by sputc(c).
4722 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
4724         PR libstdc++/9582
4725         * include/bits/stl_alloc.h:  Remove all traces of assert().
4727 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
4729         * include/std/std_sstream.h (str()): the size of the
4730         current string may be different from the initial one
4731         whenever _M_out_end > _M_out_beg.
4732         * testsuite/27_io/stringbuf_members.cc (test07): Add.
4734 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
4736         PR libstdc++/9582
4737         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
4739 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
4741         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
4742         * testsuite/27_io/ios_members.cc (test03): New.
4744 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
4746         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
4747         (basic_ios::_M_cache_facets): Move into above.
4748         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
4749         cache.
4750         (basic_ios::imbue): Force locale cache to be built.
4751         (basic_ios::_M_init): Create and initialize locale cache.
4752         * include/bits/ios_base.h (__locale_cache_base): Declare.
4753         (ios_base::_M_locale_cache): New.
4754         (ios_base::_M_cache): Define.
4755         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
4756         _S_end.
4757         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
4758         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
4759         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
4760         cache literal string, grouping flag, thousands separator.
4761         (__locale_cache<_CharT>::__locale_cache): New.
4762         (__locale_cache<_CharT>::_M_init): New.
4763         * src/ios.cc: Clear _M_locale_cache in constructor.
4764         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
4765         New.
4767 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
4769         * src/locale-inst.cc: Do not include <cassert>.
4770         * src/locale.cc: Likewise.
4772 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
4774         PR libstdc++/9580
4775         * include/std/std_fstream.h: Declare underflow and uflow
4776         specializations, change generic definitions to do nothing.
4777         * src/fstream.cc: Add underflow and uflow specializations.
4779 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
4781         PR libstdc++/9169
4782         * include/bits/fstream.tcc (_M_convert_to_external):
4783         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
4784         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
4786 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
4788         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
4789         * include/bits/basic_ios.tcc: Guard use of extern template.
4790         * include/std/std_iomanip.h: Same.
4791         * include/bits/streambuf.tcc: Same.
4792         * include/bits/stl_alloc.h: Same.
4793         * include/bits/locale_facets.tcc: Same.
4794         * include/bits/ostream.tcc: Same.
4795         * include/bits/istream.tcc: Same.
4796         * include/bits/fstream.tcc: Same.
4797         * include/bits/basic_string.tcc: Same.
4799 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
4801         * include/bits/ostream.tcc (sentry::sentry): Improve
4802         performance-wise the fix for libstdc++/9563.
4804 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
4806         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
4807         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
4808         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
4809         when we don't have static mutex initialization.
4810         (__exchange_and_add):  Use _Atomic_add_mutex_once.
4811         * src/misc-inst.cc:  Definitions of all the above.
4813 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
4815         PR libstdc++/9563
4816         * include/bits/ostream.tcc (sentry::sentry): Check
4817         the state of the stream after the preparation.
4818         * testsuite/27_io/ostream_sentry.cc (test02): Add.
4820 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
4822         * include/Makefile.am (stamp-std-precompile): Add rule.
4823         * include/Makefile.in: Regenerated.
4825 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
4826            Benjamin Kosnik  <benjamin@redhat.com>
4828         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
4829         Add indexes into this array.
4830         (__num_base::_S_atoms): To _S_atoms_in.
4831         (num_put::_M_insert): Rename to _M_pad.
4832         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
4833         (num_put::_M_widen_int): Rename to _M_group_int.
4834         (num_put::_M_widen_float): Rename to _M_group_float.
4835         * include/bits/locale_facets.tcc (__int_to_char): New inline
4836         function and adapter functions.
4837         (num_put::_M_group_int): Streamline.
4838         (num_put::_M_group_float): Streamline.
4839         (num_put::_M_convert_int): Remove unused parameter names. Choose
4840         large enough buffer for text.  Use __int_to_char instead of
4841         __convert_from_v.  Formatted text is now at the end of the buffer.
4842         (num_put::_M_convert_float): Preliminary fixups.
4843         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
4844         (__int_to_char<unsigned long long>): Same.
4845         (__int_to_char<char, unsigned long>): New.
4846         (__int_to_char<char, unsigned long long>): New.
4847         (__int_to_char<wchar_t, unsigned long>): New.
4848         (__int_to_char<wchar_t, unsigned long long>): New.
4850 2003-02-11  Scott Snyder  <snyder@fnal.gov>
4852         PR libstdc++/9659
4853         * include/bits/fstream.tcc (seekoff): Avoid operator+
4854         for pos_type.
4856 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
4858         PR libstdc++/9320
4859         * include/ext/stdio_filebuf.h
4860         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
4861         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
4862         Change to take a __size parameter of type size_t, not
4863         of type (template parameter dependent) int_type.
4864         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
4865         size vars to size_t.
4866         * testsuite/ext/stdio_filebuf.cc: Add.
4868 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
4869             Petur Runolfsson  <peturr02@ru.is>
4871         PR libstdc++/9318
4872         * include/bits/streambuf.tcc (__copy_streambufs):
4873         Don't conditionalize the copy to __testput.
4874         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
4876 2002-02-11  DJ Delorie  <dj@redhat.com>
4878         * acinclude.m4: Check for native targets that can't link at
4879         this point in the build.
4880         * aclocal.m4: Regenerate.
4881         * configure: Regenerate.
4883 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4885         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
4886         Correct alignment.
4887         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
4888         lock.
4890 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
4892         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
4893         unsigned char platforms.
4895 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
4897         PR libstdc++/9562
4898         * include/std/std_istream.h
4899         (basic_istream::sentry::operator bool()): Make const.
4900         * include/std/std_ostream.h
4901         (basic_ostream::sentry::operator bool()): Likewise.
4902         * testsuite/27_io/istream_sentry.cc (test03): Add.
4903         * testsuite/27_io/ostream_sentry.cc: Add.
4905 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
4907         PR libstdc++/9548
4908         Implement resolution of DR 231 (Ready)
4909         * include/bits/locale_facets.h (__num_base::_S_format_float):
4910         Change declaration: return void, remove __prec parameter.
4911         * src/locale.cc (__num_base::_S_format_float): Implement
4912         resolution of DR 231.
4913         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
4914         Tweak uses. Check for negative precision.
4915         * testsuite/22_locale/num_put/put/char/6.cc: Add
4916         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
4918 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
4920         * config/io/basic_file_libio.h: Fixups.
4921         * config/io/c_io_libio.h: Same.
4922         * libio/Makefile.am: Same.
4923         * libio/Makefile.in: Regenerated.
4925 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
4927         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
4928         Explicitly use the "C" locale.
4929         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
4931 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
4933         DR 75
4934         DR 305
4935         PR libstdc++/9028 (partial)
4936         PR libstdc++/9224
4937         PR libstdc++/9246
4938         PR libstdc++/9247
4940         * src/codecvt.cc
4941         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
4942         codecvt<wchar_t, char, mbstate_t>::do_length,
4943         codecvt<wchar_t, char, mbstate_t>::do_max_length):
4944         Move...
4945         * config/locale/generic/codecvt_members.cc:  ...here.
4946         * config/locale/gnu/codecvt_members.cc:  ...and here.
4948         * config/locale/generic/codecvt_members.cc,
4949         * config/locale/gnu/codecvt_members.cc
4950         (codecvt<wchar_t, char, mbstate_t>::do_encoding
4951         codecvt<wchar_t, char, mbstate_t>::do_in,
4952         codecvt<wchar_t, char, mbstate_t>::do_length,
4953         codecvt<wchar_t, char, mbstate_t>::do_max_length,
4954         codecvt<wchar_t, char, mbstate_t>::do_out):
4955         New implementation that handles stateless encodings,
4956         including UTF-8.
4958         * config/locale/generic/codecvt_members.cc,
4959         * config/locale/gnu/codecvt_members.cc,
4960         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
4961         * include/bits/codecvt.h,
4962         * src/codecvt.cc
4963         (codecvt::length, codecvt::do_length):
4964         Change type of first argument of length and do_length from
4965         'const state_type&' to 'state_type&' according to DR 75.
4967         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
4968         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
4969         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
4970         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
4971         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
4972         Cleanup and check for correct return value from encoding
4973         for "C" locale.
4974         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
4975         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
4976         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
4977         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
4978         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
4979         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
4980         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
4981         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
4982         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
4983         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
4984         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
4985         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
4986         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
4987         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
4988         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
4989         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
4990         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
4991         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
4992         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
4993         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
4994         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
4995         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
4996         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
4997         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
4998         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
4999         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
5000         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
5001         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
5002         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
5003         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
5004         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
5005         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
5006         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
5007         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
5008         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
5009         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
5010         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
5012 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
5014         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
5015         (money_put::do_put): Same.
5017 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
5019         * include/bits/ios_base.h (ios_base): Document reserved storage.
5021         * include/bits/locale_facets.h: (struct __pad): Comment on
5022         implementation.
5023         (__verify_grouping): Same.
5024         (__add_grouping): Same.
5025         * include/bits/locale_facets.tcc (__verify_grouping): Move
5026         comments to declaration.
5027         (__add_grouping): Same.
5029         * include/bits/locale_facets.tcc:
5030         (__write<_CharT, _OutIter>): New function.
5031         (__write<_CharT>): New function specialization.
5032         (num_put::_M_insert): Remove explicit loop over iterator.  Use
5033         __write.
5034         (num_put::_M_widen_float): Remove __basefield.
5035         (num_put::_M_widen_int): Move __basefield to within grouping block.
5037         * include/bits/streambuf_iterator.h: Include <streambuf>.
5038         (ostreambuf_iterator::_M_put): Add.
5040 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
5042         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
5044 2003-02-04  Nathan Myers  <ncm@cantrip.org>
5046         * testsuite/25_algorithms/min_max.cc (test02): Add.
5048 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
5050         PR libstdc++/9439, PR libstdc++/9425
5051         * config/io/basic_file_stdio.cc
5052         (__basic_file<char>::seekoff, seekpos): Return -1L if
5053         fseek fails.
5054         * include/bits/fstream.tcc (basic_filebuf::seekoff):
5055         Check _M_file.seekoff return value; always return
5056         pos_type(off_type(-1)) in case of failure.
5057         (basic_filebuf::pbackfail): Check this->seekoff return
5058         value and return traits_type::eof() in case of failure.
5059         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
5061 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
5063         * include/std/std_ostream.h (ostream::_M_write): Declare.
5064         * ostream.tcc (ostream::_M_write): Define.
5065         (basic_ostream::write): Use it.
5066         (operator<<(basic_ostream, _CharT)): Ditto.
5067         (operator<<(basic_ostream, char)): Ditto.
5068         (operator<<(basic_ostream, _CharT*)): Ditto.
5069         (operator<<(basic_ostream, char*)): Ditto.
5070         (operator<<(basic_ostream, basic_string)): Ditto.
5072 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
5074         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
5076 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
5078         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
5079         add HTML comment about updating links if numbering changes.
5081 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
5083         PR libstdc++/9538
5084         * include/bits/streambuf.tcc (sputbackc): Access
5085         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
5086         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5088 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
5090         PR libstdc++/9507
5091         * include/bits/fstream.tcc (open): If the 'ate' repositioning
5092         operation fails, calls close _and_ returns a null pointer
5093         to indicate failure (27.8.1.3,4).
5094         * testsuite/27_io/filebuf_members.cc (test_06): Add.
5096 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
5098         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
5100 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
5102         * docs/html/27_io/howto.html: New section on stdio_filebuf.
5103         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
5104         * docs/html/documentation.html: Regenerate.
5106 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
5108         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
5109         * docs/html/17_intro/porting.html: Regenerate.
5111 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
5112             Phil Edwards  <pme@gcc.gnu.org>
5114         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
5115         numeric_limits for bits-per-word values.
5116         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
5117         Use __builtin_popcountl instead.
5118         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
5119         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
5120         Use __builtin_ctzl instead.
5121         (_S_bit_count, _S_first_one):  Remove.
5122         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
5123         * src/Makefile.am (sources):  Remove bitset.cc.
5124         * src/bitset.cc:  Delete file.
5125         * src/Makefile.in:  Regenerate.
5127 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
5129         PR libstdc++/9527, PR libstdc++/8713
5130         * docs/html/install.html:  Mention glibc version requirement.
5131         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
5132         with 3.2.1+ (formatting bugfixes).
5133         * docs/html/faq/index.txt:  Regenerate.
5135 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5137         PR libstdc++/9234
5138         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
5139         operator.
5141         * include/bits/valarray_before.h (__not_equal_to): Use != instead
5142         of ==.
5144         * testsuite/26_numerics/valarray_operators.cc: New test.
5146 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
5148         * docs/html/faq/index.html:  Correct link to libg++ information.
5149         * docs/html/faq/index.txt:  Regenerated.
5151 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
5152             Benjamin Kosnik  <bkoz@redhat.com>
5154         Const correctness issue:
5155         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
5156         * include/bits/locale_classes.h
5157         (locale::_Impl::_M_facets): Change type to const facet**.
5158         (locale::_Impl::_M_install_facet): Change declaration to
5159         take const facet*.
5160         (locale::facet::_M_references): Make mutable.
5161         (locale::facet::_M_add_reference): Declare const.
5162         (locale::facet::_M_remove_reference): Likewise.
5163         * include/bits/locale_facets.tcc
5164         (use_facet(const locale&)): Tweak for const facet** _M_facets.
5165         (has_facet(const locale&)): Likewise.
5166         * src/locale.cc
5167         (locale::facet::_M_add_reference): Adjust definition.
5168         (locale::facet::_M_remove_reference): Likewise.
5169         * src/localename.cc
5170         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
5171         const facet** _M_facets.
5172         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
5173         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
5174         (locale::_Impl::_M_install_facet): Adjust definition to take
5175         const facet* and for const facet** _M_facets.
5176         * testsuite/22_locale/locale/cons/8.cc: Add.
5178 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
5180         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
5181         Use __FLT_HAS_INIFINITY__ to initialize.
5182         (numeric_limits<float>::has_quiet_NaN): Likewise.
5183         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
5184         to initialize.
5185         (numeric_limits<double>::has_quiet_NaN): Likewise.
5186         (numeric_limits<long double>::has_infinity): Use
5187         __LDBL_HAS_INIFINITY__ to initialize.
5188         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
5190 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
5192         PR c++/9433
5193         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
5194         with bases which are very ambiguous.
5196 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
5198         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
5199         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
5200         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
5201         * src/Makefile.in: Regenerate.
5202         * libsupc++/Makefile.in: Regenerate.
5204 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
5206         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
5207         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
5208         version_specific_libs is enabled.
5209         * aclocal.m4, configure: Rebuilt.
5211 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
5213         * include/bits/valarray_meta.h: Remove, split into ...
5214         * include/bits/valarray_before.h: ... this, and ...
5215         * include/bits/valarray_after.h: ... this.
5216         * include/std/std_valarray.h: Adjust.
5217         * include/Makefile.am (bits_headers): Adjust.
5218         * include/Makefile.in: Regenerate.
5220 2003-01-24  Andreas Schwab  <schwab@suse.de>
5222         * config/linker-map.gnu: Fix for size_t variance.
5224 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
5226         PR libstdc++/9322
5227         * include/std/std_streambuf.h
5228         (basic_streambuf::basic_streambuf,
5229         basic_streambuf::~basic_streambuf,
5230         basic_streambuf::getloc, basic_streambuf::imbue):
5231         Remove _M_buf_locale_init
5232         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
5233         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
5234         * testsuite/27_io/streambuf_members.cc (test08):  Add.
5235         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
5237 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
5239         Revert include ordering.
5240         * config/locale/generic/c_locale.h: Add include guards.
5241         * config/locale/gnu/c_locale.h: Same.
5242         * include/bits/locale_classes.h: Remove cctype include.
5243         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
5244         * include/std/std_fstream.h: Remove streambuf include.
5245         * include/std/std_sstream.h: Remove streambuf include.
5247 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
5249         * configure.in (libtool_VERSION): To 6:0:0.
5250         * configure: Regenerated.
5251         * config/linker-map.gnu: Clean.
5253         * src/misc-inst.cc: Remove instantiations.
5255         * include/bits/stl_alloc.h (__malloc_alloc_template):
5256         To __malloc_alloc.
5257         (__default_alloc_template): To __pool_alloc.
5258         * src/stl-inst.cc: Same.
5259         * include/backward/alloc.h: Update.
5260         * testsuite/ext/allocators.cc: Update.
5262         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
5263         really try to remove these if possible.
5264         * src/locale.cc (std): Same.
5266         * testsuite/abi_check.cc (check_version): Add.
5268 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
5269             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
5270             Mark Mitchell  <mark@codesourcery.com>
5272         PR libstdc++/9269
5273         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
5274         (basic_filebuf::underflow): Declare.
5275         Move definitions.
5277 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
5279         * include/bits/locale_facets.h: Move non-facet classes requiring
5280         <string> to...
5281         * include/bits/locale_classes.h: New.
5282         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
5283         * include/bits/Makefile.in: Regenerate.
5285         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
5286         * config/locale/gnu/c_locale.h: ...here.
5287         * config/locale/generic/c_locale.h: Same.
5289         * include/bits/locale_facets.tcc: Move declarations to...
5290         * include/bits/locale_facets.h: ...here.
5291         * include/bits/basic_ios.h: Tweak includes accordingly.
5292         * include/std/std_sstream.h: Add streambuf include.
5293         * include/std/std_fstream.h: Ditto.
5294         * include/std/std_locale.h: Add locale_classes.h include.
5295         * include/std/std_iosfwd.h: Tweak.
5296         * src/concept-inst.cc: Add iterator include.
5298         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
5299         bits as unexported in the future.
5301 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
5303         Reshuffle 22_locale testsuite.
5304         * 22_locale/(codecvt.cc money_get.cc
5305         codecvt_members_char_char.cc money_get_members_char.cc
5306         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
5307         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
5308         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
5309         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
5310         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
5311         money_put_members_char.cc ctor_copy_dtor.cc
5312         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
5313         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
5314         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
5315         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
5316         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
5317         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
5318         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
5319         operators.cc ctype_widen_char.cc static_members.cc
5320         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
5321         global_templates.cc time_get_members_wchar_t.cc, members.cc,
5322         time_put.cc, messages_byname.cc, time_put_members_char.cc,
5323         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
5324         Split up into individual test cases...
5325         * 22_locale/codecvt/1.cc: New.
5326         * 22_locale/codecvt/2.cc: New.
5327         * 22_locale/codecvt/always_noconv/char/1.cc: New.
5328         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
5329         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
5330         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
5331         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
5332         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
5333         * 22_locale/codecvt/encoding/char/1.cc: New.
5334         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
5335         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
5336         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
5337         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
5338         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
5339         * 22_locale/codecvt/in/char/1.cc: New.
5340         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
5341         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
5342         * 22_locale/codecvt/in/wchar_t/1.cc: New.
5343         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
5344         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
5345         * 22_locale/codecvt/length/char/1.cc: New.
5346         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
5347         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
5348         * 22_locale/codecvt/length/wchar_t/1.cc: New.
5349         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
5350         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
5351         * 22_locale/codecvt/max_length/char/1.cc: New.
5352         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
5353         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
5354         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
5355         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
5356         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
5357         * 22_locale/codecvt/out/char/1.cc: New.
5358         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
5359         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
5360         * 22_locale/codecvt/out/wchar_t/1.cc: New.
5361         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
5362         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
5363         * 22_locale/codecvt/unicode/char.cc: New.
5364         * 22_locale/codecvt/unicode/wchar_t.cc: New.
5365         * 22_locale/codecvt/unshift/char/1.cc: New.
5366         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
5367         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
5368         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
5369         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
5370         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
5371         * 22_locale/collate/1.cc: New.
5372         * 22_locale/collate/2.cc: New.
5373         * 22_locale/collate/compare/char/1.cc: New.
5374         * 22_locale/collate/compare/char/2.cc: New.
5375         * 22_locale/collate/compare/char/wrapped_env.cc: New.
5376         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
5377         * 22_locale/collate/compare/wchar_t/1.cc: New.
5378         * 22_locale/collate/compare/wchar_t/2.cc: New.
5379         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
5380         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
5381         * 22_locale/collate/hash/char/1.cc: New.
5382         * 22_locale/collate/hash/char/2.cc: New.
5383         * 22_locale/collate/hash/char/wrapped_env.cc: New.
5384         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
5385         * 22_locale/collate/hash/wchar_t/1.cc: New.
5386         * 22_locale/collate/hash/wchar_t/2.cc: New.
5387         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
5388         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
5389         * 22_locale/collate/transform/char/2.cc: New.
5390         * 22_locale/collate/transform/char/wrapped_env.cc: New.
5391         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
5392         * 22_locale/collate/transform/wchar_t/2.cc: New.
5393         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
5394         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
5395         * 22_locale/collate_byname/1.cc: New.
5396         * 22_locale/ctype/1.cc: New.
5397         * 22_locale/ctype/2.cc: New.
5398         * 22_locale/ctype/cons/char/1.cc: New.
5399         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
5400         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
5401         * 22_locale/ctype/is/char/1.cc: New.
5402         * 22_locale/ctype/is/char/2.cc: New.
5403         * 22_locale/ctype/is/char/3.cc: New.
5404         * 22_locale/ctype/is/char/wrapped_env.cc: New.
5405         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
5406         * 22_locale/ctype/is/wchar_t/1.cc: New.
5407         * 22_locale/ctype/is/wchar_t/2.cc: New.
5408         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
5409         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
5410         * 22_locale/ctype/narrow/char/1.cc: New.
5411         * 22_locale/ctype/narrow/char/2.cc: New.
5412         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
5413         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
5414         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
5415         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
5416         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
5417         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
5418         * 22_locale/ctype/scan/char/1.cc: New.
5419         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
5420         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
5421         * 22_locale/ctype/scan/wchar_t/1.cc: New.
5422         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
5423         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
5424         * 22_locale/ctype/to/char/1.cc: New.
5425         * 22_locale/ctype/to/char/wrapped_env.cc: New.
5426         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
5427         * 22_locale/ctype/to/wchar_t/1.cc: New.
5428         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
5429         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
5430         * 22_locale/ctype/widen/char/1.cc: New.
5431         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
5432         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
5433         * 22_locale/ctype/widen/wchar_t/1.cc: New.
5434         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
5435         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
5436         * 22_locale/facet/1.cc: New.
5437         * 22_locale/facet/2.cc: New.
5438         * 22_locale/global_templates/1.cc: New.
5439         * 22_locale/locale/cons/1.cc: New.
5440         * 22_locale/locale/cons/2.cc: New.
5441         * 22_locale/locale/cons/3.cc: New.
5442         * 22_locale/locale/cons/4.cc: New.
5443         * 22_locale/locale/cons/5.cc: New.
5444         * 22_locale/locale/cons/6.cc: New.
5445         * 22_locale/locale/cons/7.cc: New.
5446         * 22_locale/locale/global_locale_objects/1.cc: New.
5447         * 22_locale/locale/global_locale_objects/2.cc: New.
5448         * 22_locale/locale/global_locale_objects/3.cc: New.
5449         * 22_locale/locale/operations/1.cc: New.
5450         * 22_locale/locale/operations/2.cc: New.
5451         * 22_locale/messages/1.cc: New.
5452         * 22_locale/messages/2.cc: New.
5453         * 22_locale/messages/members/char/1.cc: New.
5454         * 22_locale/messages/members/char/2.cc: New.
5455         * 22_locale/messages/members/char/3.cc: New.
5456         * 22_locale/messages/members/char/wrapped_env.cc: New.
5457         * 22_locale/messages/members/char/wrapped_locale.cc: New.
5458         * 22_locale/messages_byname/1.cc: New.
5459         * 22_locale/money_get/1.cc: New.
5460         * 22_locale/money_get/2.cc: New.
5461         * 22_locale/money_get/get/char/1.cc: New.
5462         * 22_locale/money_get/get/char/2.cc: New.
5463         * 22_locale/money_get/get/char/3.cc: New.
5464         * 22_locale/money_get/get/char/4.cc: New.
5465         * 22_locale/money_get/get/char/5.cc: New.
5466         * 22_locale/money_get/get/char/6.cc: New.
5467         * 22_locale/money_get/get/char/7.cc: New.
5468         * 22_locale/money_get/get/char/8.cc: New.
5469         * 22_locale/money_get/get/char/wrapped_env.cc: New.
5470         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
5471         * 22_locale/money_get/get/wchar_t/1.cc: New.
5472         * 22_locale/money_get/get/wchar_t/2.cc: New.
5473         * 22_locale/money_get/get/wchar_t/3.cc: New.
5474         * 22_locale/money_get/get/wchar_t/4.cc: New.
5475         * 22_locale/money_get/get/wchar_t/5.cc: New.
5476         * 22_locale/money_get/get/wchar_t/6.cc: New.
5477         * 22_locale/money_get/get/wchar_t/7.cc: New.
5478         * 22_locale/money_get/get/wchar_t/8.cc: New.
5479         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
5480         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
5481         * 22_locale/money_put/1.cc: New.
5482         * 22_locale/money_put/2.cc: New.
5483         * 22_locale/money_put/put/char/1.cc: New.
5484         * 22_locale/money_put/put/char/2.cc: New.
5485         * 22_locale/money_put/put/char/3.cc: New.
5486         * 22_locale/money_put/put/char/4.cc: New.
5487         * 22_locale/money_put/put/char/5.cc: New.
5488         * 22_locale/money_put/put/char/6.cc: New.
5489         * 22_locale/money_put/put/char/wrapped_env.cc: New.
5490         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
5491         * 22_locale/money_put/put/wchar_t/1.cc: New.
5492         * 22_locale/money_put/put/wchar_t/2.cc: New.
5493         * 22_locale/money_put/put/wchar_t/3.cc: New.
5494         * 22_locale/money_put/put/wchar_t/4.cc: New.
5495         * 22_locale/money_put/put/wchar_t/5.cc: New.
5496         * 22_locale/money_put/put/wchar_t/6.cc: New.
5497         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
5498         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
5499         * 22_locale/moneypunct/1.cc: New.
5500         * 22_locale/moneypunct/2.cc: New.
5501         * 22_locale/moneypunct/3.cc: New.
5502         * 22_locale/moneypunct/members/char/1.cc: New.
5503         * 22_locale/moneypunct/members/char/2.cc: New.
5504         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
5505         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
5506         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
5507         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
5508         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
5509         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
5510         * 22_locale/moneypunct_byname/1.cc: New.
5511         * 22_locale/num_get/1.cc: New.
5512         * 22_locale/num_get/2.cc: New.
5513         * 22_locale/num_get/get/char/1.cc: New.
5514         * 22_locale/num_get/get/char/2.cc: New.
5515         * 22_locale/num_get/get/char/3.cc: New.
5516         * 22_locale/num_get/get/char/4.cc: New.
5517         * 22_locale/num_get/get/char/5.cc: New.
5518         * 22_locale/num_get/get/char/6.cc: New.
5519         * 22_locale/num_get/get/char/wrapped_env.cc: New.
5520         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
5521         * 22_locale/num_get/get/wchar_t/1.cc: New.
5522         * 22_locale/num_get/get/wchar_t/2.cc: New.
5523         * 22_locale/num_get/get/wchar_t/3.cc: New.
5524         * 22_locale/num_get/get/wchar_t/4.cc: New.
5525         * 22_locale/num_get/get/wchar_t/5.cc: New.
5526         * 22_locale/num_get/get/wchar_t/6.cc: New.
5527         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
5528         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
5529         * 22_locale/num_put/1.cc: New.
5530         * 22_locale/num_put/2.cc: New.
5531         * 22_locale/num_put/put/char/1.cc: New.
5532         * 22_locale/num_put/put/char/2.cc: New.
5533         * 22_locale/num_put/put/char/3.cc: New.
5534         * 22_locale/num_put/put/char/4.cc: New.
5535         * 22_locale/num_put/put/char/5.cc: New.
5536         * 22_locale/num_put/put/char/wrapped_env.cc: New.
5537         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
5538         * 22_locale/num_put/put/wchar_t/1.cc: New.
5539         * 22_locale/num_put/put/wchar_t/2.cc: New.
5540         * 22_locale/num_put/put/wchar_t/3.cc: New.
5541         * 22_locale/num_put/put/wchar_t/4.cc: New.
5542         * 22_locale/num_put/put/wchar_t/5.cc: New.
5543         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
5544         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
5545         * 22_locale/numpunct/1.cc: New.
5546         * 22_locale/numpunct/2.cc: New.
5547         * 22_locale/numpunct/members/char/1.cc: New.
5548         * 22_locale/numpunct/members/char/2.cc: New.
5549         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
5550         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
5551         * 22_locale/numpunct/members/wchar_t/1.cc: New.
5552         * 22_locale/numpunct/members/wchar_t/2.cc: New.
5553         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
5554         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
5555         * 22_locale/numpunct_byname/1.cc: New.
5556         * 22_locale/numpunct_byname/2.cc: New.
5557         * 22_locale/time_get/1.cc: New.
5558         * 22_locale/time_get/2.cc: New.
5559         * 22_locale/time_get/date_order/char/1.cc: New.
5560         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
5561         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
5562         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
5563         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
5564         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
5565         * 22_locale/time_get/get_date/char/1.cc: New.
5566         * 22_locale/time_get/get_date/char/2.cc: New.
5567         * 22_locale/time_get/get_date/char/3.cc: New.
5568         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
5569         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
5570         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
5571         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
5572         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
5573         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
5574         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
5575         * 22_locale/time_get/get_monthname/char/1.cc: New.
5576         * 22_locale/time_get/get_monthname/char/2.cc: New.
5577         * 22_locale/time_get/get_monthname/char/3.cc: New.
5578         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
5579         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
5580         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
5581         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
5582         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
5583         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
5584         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
5585         * 22_locale/time_get/get_time/char/1.cc: New.
5586         * 22_locale/time_get/get_time/char/2.cc: New.
5587         * 22_locale/time_get/get_time/char/3.cc: New.
5588         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
5589         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
5590         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
5591         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
5592         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
5593         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
5594         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
5595         * 22_locale/time_get/get_weekday/char/1.cc: New.
5596         * 22_locale/time_get/get_weekday/char/2.cc: New.
5597         * 22_locale/time_get/get_weekday/char/3.cc: New.
5598         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
5599         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
5600         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
5601         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
5602         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
5603         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
5604         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
5605         * 22_locale/time_get/get_year/char/1.cc: New.
5606         * 22_locale/time_get/get_year/char/3.cc: New.
5607         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
5608         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
5609         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
5610         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
5611         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
5612         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
5613         * 22_locale/time_put/1.cc: New.
5614         * 22_locale/time_put/2.cc: New.
5615         * 22_locale/time_put/put/char/1.cc: New.
5616         * 22_locale/time_put/put/char/10.cc: New.
5617         * 22_locale/time_put/put/char/2.cc: New.
5618         * 22_locale/time_put/put/char/3.cc: New.
5619         * 22_locale/time_put/put/char/4.cc: New.
5620         * 22_locale/time_put/put/char/5.cc: New.
5621         * 22_locale/time_put/put/char/6.cc: New.
5622         * 22_locale/time_put/put/char/7.cc: New.
5623         * 22_locale/time_put/put/char/8.cc: New.
5624         * 22_locale/time_put/put/char/9.cc: New.
5625         * 22_locale/time_put/put/char/wrapped_env.cc: New.
5626         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
5627         * 22_locale/time_put/put/wchar_t/1.cc: New.
5628         * 22_locale/time_put/put/wchar_t/10.cc: New.
5629         * 22_locale/time_put/put/wchar_t/2.cc: New.
5630         * 22_locale/time_put/put/wchar_t/3.cc: New.
5631         * 22_locale/time_put/put/wchar_t/4.cc: New.
5632         * 22_locale/time_put/put/wchar_t/5.cc: New.
5633         * 22_locale/time_put/put/wchar_t/6.cc: New.
5634         * 22_locale/time_put/put/wchar_t/7.cc: New.
5635         * 22_locale/time_put/put/wchar_t/8.cc: New.
5636         * 22_locale/time_put/put/wchar_t/9.cc: New.
5637         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
5638         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
5640 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
5642         * config/locale/generic/messages_members.h
5643         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
5644         unqualified members of base clasess.
5646 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
5647             Jeffrey Oldham <oldham@codesourcery.com>
5649         * config/locale/gnu/messages_members.h: Use this-> to refer to
5650         unqualified members of base clasess.
5651         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
5652         * include/bits/codecvt.h: Likewise.
5653         * include/bits/deque.tcc: Likewise.
5654         * include/bits/fstream.tcc: Likewise.
5655         * include/bits/istream.tcc: Likewise.
5656         * include/bits/list.tcc: Likewise.
5657         * include/bits/locale_facets.h: Likewise.
5658         * include/bits/ostream.tcc: Likewise.
5659         * include/bits/sstream.tcc: Likewise.
5660         * include/bits/stl_bvector.h: Likewise.
5661         * include/bits/stl_deque.h: Likewise.
5662         * include/bits/stl_list.h: Likewise.
5663         * include/bits/stl_tree.h: Likewise.
5664         * include/bits/stl_vector.h: Likewise.
5665         * include/bits/vector.tcc: Likewise.
5666         * include/ext/ropeimpl.h: Likewise.
5667         * include/ext/stdio_filebuf.h: Likewise.
5668         * include/ext/stl_rope.h: Likewise.
5669         * include/std/std_fstream.h: Likewise.
5670         * include/std/std_sstream.h: Likewise.
5672 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
5674         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
5676 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
5678         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
5679         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
5680         * aclocal.m4: Regenerate.
5681         * configure: Regenerate.
5682         * testsuite/Makefile.am (all-local): Add conditional rule to
5683         generate testsuite_wchar_t.
5684         * testsuite/Makefile.in: Regenerate.
5685         * testsuite/lib/libstdc++-v3-dg.exp
5686         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
5687         testsuite_wchar_t is not present in the build directory.
5688         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
5689         Remove setulimit bits.
5690         * testsuite/26_numerics/complex_value.cc: Set to noopts.
5691         * testsuite/Makefile.am (CLEANFILES): Add.
5692         * testsuite/Makefile.in: Regenerate.
5694 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5696         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
5697         __hppa__.
5699 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
5701         Further conform g++'s __vmi_class_type_info to the C++ ABI
5702         specification.
5703         * libsupc++/cxxabi.h
5704         (__vmi_class_type_info::__flags_masks): Remove enumerations not
5705         required by the specification.
5707 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
5709         Renames, namespaces for testsuite utilities.
5710         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
5711         (gnu_allocator_tracker): Rename to allocation_tracker.
5712         (gnu_new_allocator): Rename to tracker_alloc.
5713         (__set_testsuite_memlimit): Rename to set_memory_limits.
5714         (gnu_assignment_operator): Rename to assignment_operator.
5715         (gnu_destructor): Rename to destructor.
5716         (gnu_copy_tracker): Rename to copy_tracker.
5717         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
5718         (run_tests_wrapped_locale): New.
5719         (run_tests_wrapped_env): New.
5720         * testsuite/testsuite_hooks.cc: Same.
5721         (class locale_data): Add.
5722         (class enviornment_variable): Add.
5723         (class not_found): Add.
5724         * testsuite/testsuite_allocator.h: Same.
5725         * testsuite/testsuite_allocator.cc: Same.
5726         * testsuite/23_containers/deque_ctor.cc
5727         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
5728         allocation_tracker.
5729         Change gnu_new_allocator to tracker_alloc.
5730         Change gnu_counting_struct to counter.
5731         Change gnu_copy_tracker to copy_tracker.
5732         Change gnu_copy_constructor to copy_constructor.
5733         Change gnu_assignment_operator to assignment_operator.
5734         Inject.
5735         * testsuite/23_containers/vector_capacity.cc: Same.
5736         * testsuite/23_containers/vector_ctor.cc (test01): Same.
5737         * testsuite/23_containers/list_modifiers.cc: Change
5738         gnu_copy_tracker to copy_tracker.
5739         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
5740         __set_testsuite_memlimit to set_memory_limits.
5741         * testsuite/21_strings/insert.cc (main): Same.
5742         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
5743         * testsuite/27_io/stringstream.cc: Same.
5744         * testsuite/27_io/stringbuf.cc: Same.
5745         * testsuite/27_io/streambuf.cc: Same.
5746         * testsuite/27_io/ostream.cc: Same.
5747         * testsuite/27_io/istream.cc: Same.
5748         * testsuite/27_io/fstream.cc: Same.
5749         * testsuite/lib/libstdc++-v3-dg.exp
5750         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
5751         three levels deeper in glob patterns.
5753 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
5755         * docs/doxygen/tables.html:  Finished now.
5756         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
5757         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
5758         comments.
5760         * include/bits/deque.tcc, include/bits/stl_alloc.h,
5761         include/bits/stl_deque.h, include/bits/stl_list.h,
5762         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
5763         for 3.4 removal.
5765 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
5767         * configure.in: Revert.
5768         * configure: Regenerate.
5770 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
5772         * include/Makefile.am (install-data-local): Prepend
5773         $(DESTDIR) to destination paths in all (un)installation
5774         commands.  Use ${c_base_builddir} and ${std_builddir}
5775         as destination subdirectories to achieve consistency with
5776         preceding mkinstalldirs commands.  No effect because both
5777         variables contain "." only.
5778         * include/Makefile.in: Regenerate.
5780 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
5782         * include/Makefile.am (stamp-*): Add checks for existing stamps.
5783         * include/Makefile.in: Regenerate.
5785         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
5786         * aclocal.m4: Regenerate.
5788         * configure.in: Don't add new multi-do rules every time the
5789         directory is reconfigured.
5790         * configure: Regenerate.
5792 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
5793             Nathan Myers  <ncm@cantrip.org>
5795         * src/Makefile.am (stamp-debug): Clean.
5796         * src/Makefile.in: Regenerate.
5798 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5800         PR libstdc++/8707
5801         * Makefile.am (distclean-multi): Fix.
5802         * Makefile.in: Regenerate.
5804 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
5806         * include/bits/locale_facets.h (messages): Move ctor, dtor
5807         definitions to..
5808         (__timepunct): Same.
5809         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
5810         definitions. Conditionalize for GNU systems.
5811         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
5812         definitions.
5813         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
5814         definitions. Conditionalize for GNU systems.
5815         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
5816         definitions.
5817         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
5818         * src/locale.cc: Define.
5819         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
5820         Use it.
5821         * config/locale/gnu/time_members.h: Use it.
5822         * config/locale/gnu/messages_members.h: Use it.
5823         * config/linker-map.gnu: Add locale::facets details.
5824         * include/Makefile.am (target_headers_extra): Add time_members.h.
5825         * include/Makefile.in: Regenerate.
5826         * acinclude.m4: Export CTIME_H.
5827         * aclocal.m4: Regenerate.
5828         * configure: Regnerate.
5830 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
5832         * src/codecvt.cc
5833         (codecvt<char, char, mbstate_t>::do_in, do_out):
5834         Tweak parameters to avoid unused parameter warnings.
5836 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
5838         PR libstdc++/9151
5839         * include/bits/locale_facets.cc (num_put::_M_convert_float):
5840         Limit __prec to digits10 + 2, not digits10 + 1, taking into
5841         account the possibility of %{g,G} conversion specifiers
5842         inside _S_format_float.
5843         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
5845 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5847         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
5848         libstdc++-v3-list-sourcefiles): Additionally handle files one
5849         level deeper in glob patterns.
5851         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
5852         * testsuite/27_io/istream_extractor_arith/01.cc,
5853         testsuite/27_io/istream_extractor_arith/02.cc,
5854         testsuite/27_io/istream_extractor_arith/03.cc,
5855         testsuite/27_io/istream_extractor_arith/06.cc,
5856         testsuite/27_io/istream_extractor_arith/07.cc,
5857         testsuite/27_io/istream_extractor_arith/08.cc,
5858         testsuite/27_io/istream_extractor_arith/09.cc,
5859         testsuite/27_io/istream_extractor_arith/10.cc,
5860         testsuite/27_io/istream_extractor_arith/11.cc,
5861         testsuite/27_io/istream_extractor_arith/12.cc,
5862         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
5863         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
5864         sparc*-*-solaris2*.
5866 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
5868         PR libstdc++/9168
5869         * src/codecvt.cc
5870         (codecvt<char, char, mbstate_t>::do_in, do_out):
5871         Implement the resolution of DR19 (TC).
5872         * testsuite/22_locale/codecvt_members_char_char.cc
5873         (test01): Tweak.
5875 2003-01-02  Jason Merrill  <jason@redhat.com>
5877         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
5878         *__mem is also an output.
5879         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.