OSDN Git Service

2005-04-08 Kelley Cook <kcook@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2005-04-08  Kelley Cook  <kcook@gcc.gnu.org>
2
3         * configure.ac: Create template for PACKAGE and VERSION.
4         Update comment on how to regenerate file.  Update minimum
5         automake version to 1.9.3.
6         * acconfig.h: Remove PACKAGE and VERSION.
7         * aclocal.m4, configure, Makefile.in, po/Makefile.in, 
8         src/Makefile.in, include/Makefile.in, libmath/Makefile.in, 
9         testsuite/Makefile.in, config.h.in: Regenerate.
10
11 2005-04-06  Benjamin Kosnik  <bkoz@redhat.com>
12
13         * docs/html/test.html: Update.
14         * testsuite/printnow.c: Remove.
15         * scripts/check_survey.in: Remove.
16
17         * testsuite/abi_check.cc: To...
18         * testuite/testsuite_abi_check.cc: ...here.
19         * testsuite/libstdc++-abi/abi.exp: Change abi_check.cc to
20         testsuite_abi_check.cc.
21
22         * testsuite/testsuite_hooks.h: Move character related bits to...
23         * testsuite/testsuite_character.h: ...here.
24         * testsuite/testsuite_character.cc: ... and here.
25         * testsuite/21_strings/basic_string/inserters_extractors/pod/
26         10081-in.cc: Use testsuite_character.h.
27         * testsuite/21_strings/basic_string/inserters_extractors/pod/
28         10081-out.cc: Same.
29         * testsuite/22_locale/numpunct/members/pod/1.cc: Same.
30         * testsuite/22_locale/numpunct/members/pod/2.cc: Same.
31         * testsuite/27_io/basic_filebuf/2.cc: Same.
32         * testsuite/27_io/basic_fstream/2.cc: Same.
33         * testsuite/27_io/basic_istream/2.cc: Same.
34         * testsuite/27_io/basic_istream/extractors_arithmetic/pod/
35         3983-1.cc: Same.
36         * testsuite/27_io/basic_istream/extractors_character/char/
37         9826.cc: Same.
38         * testsuite/27_io/basic_istream/extractors_character/pod/
39         3983-2.cc: Same.
40         * testsuite/27_io/basic_istream/extractors_other/pod/3983-3.cc: Same.
41         * testsuite/27_io/basic_istream/sentry/pod/1.cc: Same.
42         * testsuite/27_io/basic_ostream/2.cc: Same.
43         * testsuite/27_io/basic_ostream/sentry/pod/1.cc: Same.
44         * testsuite/27_io/basic_streambuf/2.cc: Same.
45         * testsuite/27_io/basic_stringbuf/2.cc: Same.
46         * testsuite/27_io/basic_stringbuf/4.cc: Same.
47         * testsuite/27_io/basic_stringstream/2.cc: Same.
48         * testsuite/27_io/fpos/1.cc: Same.
49         * testsuite/ext/mt_allocator/tune-1.cc: Same.
50         * testsuite/ext/mt_allocator/tune-2.cc: Same.
51         * testsuite/ext/stdio_filebuf/char/1.cc: Same.  
52         * testsuite/lib/libstdc++.exp (v3-build_support): Add
53         testsuite_character.cc.
54         * testsuite/Makefile.am (libv3test_a_SOURCES): Add
55         testsuite_character.cc.
56         * testsuite/Makefile.in: Regenerate.
57                 
58         * configure.ac: Remove use of check_survey.
59         * configure: Regenerate.
60         * testsuite/Makefile.am: Remove check-script and
61         check-script-install rules.
62         * testsuite/Makefile.in: Regenerate.
63
64 2005-04-06  Ulrich Weigand  <uweigand@de.ibm.com>
65
66         * config/cpu/s390/atomicity.h (__exchange_and_add): Add "memory"
67         clobber to inline assembly statement.
68
69 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
70
71         * acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
72         _GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
73         _GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
74         _GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
75         _GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
76         HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
77         HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
78         * acconfig.h: ... to eliminate them from here.
79         (_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
80         * config.h.in, configure: Regenerate.
81         
82 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
83
84         * Makefile.am (ACLOCAL_AMFLAGS): Define.
85         * crossconfig.m4: Wrap file into new GLIBCXX_CROSSCONFIG macro.
86         * configure.ac: Use it.
87         * acinclude.m4: Delete explicit m4_includes and sincludes.
88         * aclocal.m4, configure, Makefile.in, po/Makefile.in, 
89         src/Makefile.in, include/Makefile.in, libmath/Makefile.in, 
90         testsuite/Makefile.in: Regenerate.
91
92 2005-04-05  Jonathan Wakely  <redi@gcc.gnu.org>
93
94         * include/tr1/memory, include/tr1/boost_shared_ptr.h: Use mutex
95         to make _Sp_counted_base::add_ref_lock() thread-safe. Check whether
96         to destroy resources by testing for equality, not inequality. Add
97         empty critical sections to solve memory visibility issues.
98         * testsuite/tr1/2_general_utilities/memory/
99         shared_ptr/cons/auto_ptr_neg.cc: Use dg-excess-errors instead of
100         explicitly listing line numbers which need to be kept in sync.
101         * testsuite/tr1/2_general_utilities/memory/
102         shared_ptr/assign/auto_ptr_neg.cc: Same.
103         * testsuite/tr1/2_general_utilities/memory/
104         shared_ptr/assign/auto_ptr_rvalue_neg.cc: Same.
105         * testsuite/tr1/2_general_utilities/memory/
106         shared_ptr/cons/weak_ptr_expired.cc: Make XFAIL for consistency when
107         -fno-exceptions.
108         * testsuite/tr1/2_general_utilities/memory/
109         enable_shared_from_this/not_shared.cc: Add explanatory comments.
110         * testsuite/tr1/2_general_utilities/memory/
111         enable_shared_from_this/not_shared2.cc: Same.
112         * testsuite/tr1/2_general_utilities/memory/
113         enable_shared_from_this/not_shared3.cc: Same.
114
115 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
116
117         * acconfig.h: Delete macros already AC_DEFINED.
118         * config.h.in: Regenerate.
119
120 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
121
122         * acconfig.h (HAVE_MODF): Remove.
123         * linkage.m4: Check for modf.
124         * config.h.in, configure: Regenerate.
125
126 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
127
128         * acconfig.h (ENABLE_NLS, HAVE_CATGETS): Remove.
129         (HAVE_GETTEXT, HAVE_STPCPY): Likewise.
130         * config.h.in: Regenerate.
131         
132 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
133
134         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Use m4 translit macro 
135         to convert to uppercase instead of shelling out to tr.
136         * acconfig.h: Remove now redundant HAVE__BUILTINS_*.
137         * configure, config.h.in: Regenerate.
138
139 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
140
141         * acconfig.h (HAVE_TANL): Correct cut-and-paste typo.
142         * config.h.in: Regenerate.
143
144 2005-04-04  Mark Mitchell  <mark@codesourcery.com>
145
146         * testsuite/Makefile.am (check-local): Remove.
147         (curent_symbols.txt): Likewise.
148         (check-abi): Do not depend on current_symbols.txt.
149         * testsuite/Makefile.in: Regenerated.
150         * testsuite/libstdc++-abi/abi.exp: Build current_symbols.txt.
151
152 2005-04-02  Douglas Gregor  <doug.gregor@gmail.com>
153         
154         * include/tr1/tuple_iterate.h (tuple_element): Use new macro
155         _GLIBCXX_T_NUM_ARGS_PLUS_1 because _T is a macro on Darwin.
156         * include/tr1/repeat.h (_GLIBCXX_T_NUM_ARGS_PLUS_1): Define for
157         each iteration.
158         * scripts/gen_includers.h: Define _GLIBCXX_T_NUM_ARGS_PLUS_1 for
159         each iteration.
160         
161 2005-04-01  Douglas Gregor  <doug.gregor@gmail.com>
162
163         * include/tr1/functional (_Maybe_wrap_member_pointer): Wrap up
164         member pointers in _Mem_fn but let other function objects pass
165         through unchanged.
166         * include/tr1/functional_iterator (bind): Reduce number of bind()
167         overloads to two to eliminate ambiguities. Use
168         _Maybe_wrap_member_pointer to handle member pointers gracefully.
169         
170 2005-04-01  Mark Mitchell  <mark@codesourcery.com>
171
172         * testsuite/Makefile.am (noinst_PROGRAMS): Remove.
173         (site.exp): Write out the path to the baseline file.
174         (check-abi): Use DejaGNU.
175         (check-abi-verbose): Remove.
176         * testsuite/Makefile.in: Regenerated.
177         * testsuite/abi_check.cc (main): Check the return value from
178         compare_symbols.
179         * testsuite/testsuite_abi.cc (compare_symbols): Return a value.
180         * testsuite/testsuite_abi.h (compare_symbols): Adjust prototype.
181         * testsuite/libstdc++-abi/abi.exp: New file.
182
183 2005-03-31  Chris Jefferson  <chris@bubblescope.net>
184
185         * include/tr1/tuple: Support iteration via tuple_iterate.h.
186         * include/tr1/tuple_iterate.h: Iteration file for tuple.
187
188 2005-03-31  Douglas Gregor  <doug.gregor@gmail.com>
189
190         * include/Makefile.am (tr1_headers): Add bind and mu repetition
191         headers and reference_wrapper<> forwarding header.
192         * include/Makefile.in: Regenerate.
193         * include/tr1/bind_iterate.h: Implementation of function call
194         operators for the function object returned from tr1::bind().
195         * include/tr1/bind_repeat.h: Bind-specific repetition header,
196         akin to include/tr1/repeat.h.
197         * include/tr1/functional (_Mem_fn): Bug fix: declare result member
198         template for use with result_of.
199         (is_bind_expression): New.
200         (is_placeholder): New.
201         (_Placeholder): New. Placeholder type for bind.
202         (_Mu): New. Implementation detail of bind.
203         (_Bind, _Bind_result): New. Function objects returned by bind.
204         (_GLIBCXX_JOIN): New. Required to create bind placeholders.
205         * include/tr1/functional_iterate.h (_Bind, _Bind_result, bind):
206         New. Implementation of tr1::bind.
207         * include/tr1/mu_iterate.h (_Mu): result template and operator()
208         for the _Mu helper to bind.
209         * include/tr1/ref_fwd.h (reference_wrapper): Forward declaration
210         used by tuple header.
211         (ref): Ditto.
212         (cref): Ditto.
213         * include/tr1/repeat.h: Add bind-specific repetition macros.
214         * include/tr1/tuple: Use reference_wrapper forwarding header for
215         initial definitions, then include <tr1/functional> at the end, to
216         make the circular dependencies work.
217         (tie): Support zero-argument tie() function.
218         * testsuite/tr1/3_function_objects/bind/all_bound.cc: New test of
219         bind() functionality with parameters bound.
220         * testsuite/tr1/3_function_objects/bind/nested.cc: New test of
221         nested bind() expressions.
222         * testsuite/tr1/3_function_objects/bind/placeholders.cc: New test
223         of bind() placeholders.
224         * testsuite/tr1/3_function_objects/bind/ref.cc: New test of bind()
225         with arguments bound via reference_wrapper<>.
226         * scripts/gen_includers.pl: Generate the repetitive part of
227         include/tr1/repeat.h.
228         * scripts/gen_bind_includers.pl: Generate the repetitive part of
229         include/tr1/bind_repeat.h. 
230         
231 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
232
233         * testsuite/Makefile.am (CXX): Use ${SHELL}.
234         (GLIBCXX_INCLUDES): Same.
235         (AM_CXXFLAGS): Same.
236         * testsuite/Makefile.in: Regenerate.
237
238 2005-03-25  Mark Mitchell  <mark@codesourcery.com>
239
240         * testsuite/lib/libstdc++.exp (libstdc++_init): Define LOCALEDIR
241         when testing an installed compiler.
242         
243         * testsuite/lib/libstdc++.exp (v3-build_support): Pass -w when
244         compiling support objects.
245
246 2005-03-24  Benjamin Kosnik  <bkoz@redhat.com>
247
248         * include/tr1/memory: Forward to...
249         * include/tr1/boost_shared_ptr.h: ...here. Add Boost Software License.
250         * include/Makefile.am (tr1_headers): Add boost_shared_ptr.h.
251         * include/Makefile.in: Regenerate.
252         * testsuite/tr1/2_general_utilities/memory/shared_ptr/cons/
253         auto_ptr_neg.cc: Adjust line numbers.
254
255 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
256
257         * testsuite/Makefile.am (all-local): Do not build testsuite_files.
258         * testsuite/Makefile.in: Regenerated. 
259
260 2005-03-23  Benjamin Kosnik  <bkoz@redhat.com>
261
262         * acinclude.m4: Adjust so that _GLIBCXX_USE_C99 implies
263         using _GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_USE_C99_MATH, and
264         _GLIBCXX_USE_C99_WCHAR.
265         Remove GLIBCXX_ENABLE_C_MBCHAR, consolidate in GLIBCXX_ENABLE_C99
266         and GLIBCXX_ENABLE_WCHAR_T.
267         Take C99 bits from GLIBCXX_CHECK_WCHAR_T_SUPPORT and put in 
268         GLIBCXX_ENABLE_C99.
269         Change remaining parts of GLIBCXX_CHECK_WCHAR_T_SUPPORT to
270         GLIBCXX_CHECK_ICONV_SUPPORT.
271         * configure.ac: Remove GLIBCXX_ENABLE_C_MBCHAR, use
272         GLIBCXX_CHECK_ICONV_SUPPORT and GLIBCXX_ENABLE_WCHAR_T.
273         * crossconfig.m4: Same.
274         * acconfig.h: Same, adjust comments.
275         * config.h.in: Regenerate.
276         * configure: Regenerate.
277         * docs/html/configopts.html: Change --enable-c-mbchar to
278         --enable-wchar_t.
279
280         * config/locale/gnu/c++locale_internal.h: Guard wide functions
281         with _GLIBCXX_USE_WCHAR_T.
282         * include/c_std/std_cwctype.h: Alphabetize, remove duplicates.
283         * include/c_std/std_cstdio.h: Spacing.
284
285         * config/locale/gnu/c_locale.h: Tweaks for unused warnings.
286         * src/debug.cc: Same.
287
288 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
289
290         * testsuite/libstdc++-dg/normal.exp: Read testsuite_files, if it
291         exists.
292
293         * testsuite/lib/libstdc++.exp (libstdc++_wchar_t): Rename to ...
294         (v3-wchar_t): ... this.
295         (libstdc++_threads): Rename to ...
296         (v3-threads): ... this.
297         (libstdc++_test_objs): Rename to ...
298         (v3-test_objs): ... this.
299         (libstdc++_build_support): Rename to ...
300         (v3-build_support): ... this.
301         * testsuite/libstdc++-dg/normal.exp: Adjust to use new names.
302
303         * testsuite/lib/libstdc++.exp (libstdc++_init): Improve handling
304         of compilers not in the build directory.
305         (libstdc++_wchar_t): New variable.
306         (libstdc++_threads): Likewise.
307         (libstdc++_test_objs): Likewise.
308         (v3_target_compile): Use libstdc++_test_objs.
309         (v3-list-tests): Remove.
310         (listdc++_build_support): New function.
311         * testsuite/libstdc++-dg/normal.exp: Rework to dynamically
312         generate list of tests.
313
314 2005-03-21  Chris Jefferson  <chris@bubblescope.net>
315
316         PR libstdc++/20577
317         * include/bits/stl_algobase.h (iter_swap): Only delegate iter_swap
318         to swap when the iterator's reference_type is a reference to its
319         value_type.
320         * testsuite/25_algorithms/iter_swap/20577.cc: New.
321
322 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
323
324         * acinclude.m4 (GLIBCXX_CONFIGURE): Delete gcc_version logic.
325         (GLIBCXX_EXPORT_INSTALL_INFO): Adjust quotation so ${gcc_version}
326         is expanded by the Makefiles, not by configure.
327         * fragment.am: Set gcc_version.
328         * libmath/Makefile.am: Likewise.
329         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in
330         * libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in
331         * testsuite/Makefile.in: Regenerate.
332
333 2005-03-16  Paolo Carlini  <pcarlini@suse.de>
334
335         * testsuite/20_util/functional/binders.cc: Remove explicit
336         instantiations for non-weak systems.
337         * testsuite/20_util/memory/allocator/1.cc: Likewise.
338         * testsuite/20_util/memory/allocator/10378.cc: Likewise.
339         * testsuite/20_util/memory/allocator/10416.cc: Likewise.
340         * testsuite/20_util/memory/allocator/8230.cc: Likewise.
341         * testsuite/20_util/utility/rel_ops.cc: Likewise.
342         * testsuite/22_locale/ctype/is/char/2.cc: Likewise.
343         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
344         * testsuite/23_containers/deque/cons/1.cc: Likewise.
345         * testsuite/23_containers/deque/cons/2.cc: Likewise.
346         * testsuite/23_containers/deque/invalidation/1.cc: Likewise.
347         * testsuite/23_containers/deque/invalidation/2.cc: Likewise.
348         * testsuite/23_containers/deque/invalidation/3.cc: Likewise.
349         * testsuite/23_containers/deque/invalidation/4.cc: Likewise.
350         * testsuite/23_containers/deque/modifiers/swap.cc: Likewise.
351         * testsuite/23_containers/deque/operators/1.cc: Likewise.
352         * testsuite/23_containers/list/capacity/1.cc: Likewise.
353         * testsuite/23_containers/list/cons/1.cc: Likewise.
354         * testsuite/23_containers/list/cons/2.cc: Likewise.
355         * testsuite/23_containers/list/cons/3.cc: Likewise.
356         * testsuite/23_containers/list/cons/4.cc: Likewise.
357         * testsuite/23_containers/list/cons/5.cc: Likewise.
358         * testsuite/23_containers/list/cons/6.cc: Likewise.
359         * testsuite/23_containers/list/cons/7.cc: Likewise.
360         * testsuite/23_containers/list/cons/8.cc: Likewise.
361         * testsuite/23_containers/list/cons/9.cc: Likewise.
362         * testsuite/23_containers/list/invalidation/1.cc: Likewise.
363         * testsuite/23_containers/list/invalidation/2.cc: Likewise.
364         * testsuite/23_containers/list/invalidation/3.cc: Likewise.
365         * testsuite/23_containers/list/invalidation/4.cc: Likewise.
366         * testsuite/23_containers/list/modifiers/1.cc: Likewise.
367         * testsuite/23_containers/list/modifiers/2.cc: Likewise.
368         * testsuite/23_containers/list/modifiers/3.cc: Likewise.
369         * testsuite/23_containers/list/operators/1.cc: Likewise.
370         * testsuite/23_containers/list/operators/2.cc: Likewise.
371         * testsuite/23_containers/list/operators/3.cc: Likewise.
372         * testsuite/23_containers/list/operators/4.cc: Likewise.
373         * testsuite/23_containers/map/insert/1.cc: Likewise.
374         * testsuite/23_containers/map/invalidation/1.cc: Likewise.
375         * testsuite/23_containers/map/invalidation/2.cc: Likewise.
376         * testsuite/23_containers/map/modifiers/swap.cc: Likewise.
377         * testsuite/23_containers/map/operators/1.cc: Likewise.
378         * testsuite/23_containers/multimap/invalidation/1.cc: Likewise.
379         * testsuite/23_containers/multimap/invalidation/2.cc: Likewise.
380         * testsuite/23_containers/multimap/modifiers/swap.cc: Likewise.
381         * testsuite/23_containers/multiset/insert/1.cc: Likewise.
382         * testsuite/23_containers/multiset/insert/2.cc: Likewise.
383         * testsuite/23_containers/multiset/invalidation/1.cc: Likewise.
384         * testsuite/23_containers/multiset/invalidation/2.cc: Likewise.
385         * testsuite/23_containers/multiset/modifiers/swap.cc: Likewise.
386         * testsuite/23_containers/priority_queue/members/7161.cc: Likewise.
387         * testsuite/23_containers/queue/members/7157.cc: Likewise.
388         * testsuite/23_containers/set/insert/1.cc: Likewise.
389         * testsuite/23_containers/set/invalidation/1.cc: Likewise.
390         * testsuite/23_containers/set/invalidation/2.cc: Likewise.
391         * testsuite/23_containers/set/modifiers/swap.cc: Likewise.
392         * testsuite/23_containers/stack/members/7158.cc: Likewise.
393         * testsuite/23_containers/vector/bool/6886.cc: Likewise.
394         * testsuite/23_containers/vector/capacity/1.cc: Likewise.
395         * testsuite/23_containers/vector/capacity/8230.cc: Likewise.
396         * testsuite/23_containers/vector/cons/1.cc: Likewise.
397         * testsuite/23_containers/vector/cons/2.cc: Likewise.
398         * testsuite/23_containers/vector/cons/3.cc: Likewise.
399         * testsuite/23_containers/vector/cons/6513.cc: Likewise.
400         * testsuite/23_containers/vector/element_access/1.cc: Likewise.
401         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
402         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
403         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
404         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
405         * testsuite/23_containers/vector/modifiers/1.cc: Likewise.
406         * testsuite/23_containers/vector/modifiers/2.cc: Likewise.
407         * testsuite/23_containers/vector/modifiers/swap.cc: Likewise.
408         * testsuite/23_containers/vector/resize/1.cc: Likewise.
409         * testsuite/24_iterators/back_insert_iterator.cc: Likewise.
410         * testsuite/24_iterators/front_insert_iterator.cc: Likewise.
411         * testsuite/24_iterators/insert_iterator.cc: Likewise.
412         * testsuite/24_iterators/iterator.cc: Likewise.
413         * testsuite/25_algorithms/copy/1.cc: Likewise.
414         * testsuite/25_algorithms/copy/2.cc: Likewise.
415         * testsuite/25_algorithms/copy/3.cc: Likewise.
416         * testsuite/25_algorithms/copy/4.cc: Likewise.
417         * testsuite/25_algorithms/equal.cc: Likewise.
418         * testsuite/25_algorithms/fill/1.cc: Likewise.
419         * testsuite/25_algorithms/fill/2.cc: Likewise.
420         * testsuite/25_algorithms/min_max.cc: Likewise.
421         * testsuite/25_algorithms/rotate.cc: Likewise.
422         * testsuite/25_algorithms/unique/1.cc: Likewise.
423         * testsuite/25_algorithms/unique/2.cc: Likewise.
424         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
425         * testsuite/ext/concept_checks.cc: Likewise.
426         * testsuite/ext/hash_map/1.cc: Likewise.
427         * testsuite/ext/hash_set/1.cc: Likewise.
428         * testsuite/ext/rope/1.cc: Likewise.
429         * testsuite/ext/rope/2.cc: Likewise.
430         * testsuite/ext/rope/3.cc: Likewise.
431         * testsuite/thread/pthread1.cc: Likewise.
432         * testsuite/thread/pthread4.cc: Likewise.
433         * testsuite/thread/pthread5.cc: Likewise.
434         * testsuite/thread/pthread6.cc: Likewise.
435         * testsuite/thread/pthread7-rope.cc: Likewise.
436
437 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
438
439         * include/Makefile.am (c++config.h): Depend on DATESTAMP from gcc
440         subdirectory.  Generate #define of __GLIBCXX__ from contents of
441         that file.
442         * include/Makefile.in: Regenerate.
443         * include/bits/c++config: Do not define __GLIBCXX__.
444
445 2005-03-15  Paolo Carlini  <pcarlini@suse.de>
446
447         PR libstdc++/20352
448         * include/std/std_complex.h (pow(const complex<_Tp>&,
449         const _Tp&)): On non-c99 platforms, don't try to compute
450         log of complex zero.
451
452 2005-03-10  Ben Elliston  <bje@au.ibm.com>
453
454         * testsuite/22_locale/locale/cons/12658_thread-1.cc: Don't XFAIL
455         on GNU/Linux.
456
457 2005-03-07  Paolo Carlini  <pcarlini@suse.de>
458
459         * include/tr1/type_traits (is_polymorphic): Don't forget
460         the virtual destructor, thus avoiding warnings.
461         * testsuite/testsuite_tr1.h (class AbstractClass,
462         class PolymorphicClass): Likewise.
463
464 2005-03-07  Paolo Carlini  <pcarlini@suse.de>
465
466         * include/std/std_complex.h (pow(const complex<_Tp>&,
467         const complex<_Tp>&)): Dispatch to either __complex_pow(__x.__rep(),
468         __y.__rep()) or __complex_pow(__x, __y) depending on the macro
469         _GLIBCXX_USE_C99_COMPLEX.
470
471 2005-03-07  Paolo Carlini  <pcarlini@suse.de>
472
473         * include/std/std_fstream.h (basic_fstream<>::open,
474         basic_ifstream<>::open, basic_ofstream<>::open): Implement the
475         resolution of DR 409 [Ready], call clear() on success.
476         * docs/html/ext/howto.html: Add an entry for DR 409.
477         * docs/html/faq/index.html (4_4): Clarify the new behavior.
478         * testsuite/27_io/basic_ifstream/open/char/1.cc: Adjust.
479         * testsuite/27_io/basic_ofstream/open/char/1.cc: Likewise.
480
481 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
482
483         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
484         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
485         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
486         testsuite/22_locale/collate/hash/wchar_t/2.cc,
487         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
488         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
489         testsuite/22_locale/collate/transform/wchar_t/2.cc,
490         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
491         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
492         XFAIL on *-*-hpux11.23.
493
494 2005-03-04  Paolo Carlini  <pcarlini@suse.de>
495
496         * include/tr1/type_traits: Add is_base_of.
497         * testsuite/tr1/4_metaprogramming/relationships_between_types/
498         is_base_of/is_base_of.cc: New.
499         * testsuite/tr1/4_metaprogramming/relationships_between_types/
500         is_base_of/typedefs.cc: Likewise.
501
502 2005-03-03  Benjamin Kosnik  <bkoz@redhat.com>
503
504         * include/tr1/functional: Convert relative path.
505
506         * docs/doxygen/user.cfg.in: Add tr1 includes.
507
508 2005-03-03  Paolo Carlini  <pcarlini@suse.de>
509
510         * include/tr1/type_traits: Implemenet is_polymorphic.
511         (is_empty): Minor tweaks.
512         * testsuite/testsuite_tr1.h: Add test types.
513         * testsuite/tr1/4_metaprogramming/type_properties/
514         is_polymorphic/is_polymorphic.cc: New.
515         * testsuite/tr1/4_metaprogramming/type_properties/
516         is_polymorphic/typedefs.cc: Likewise.
517         * testsuite/tr1/4_metaprogramming/composite_type_traits/
518         is_union_or_class/is_union_or_class.cc: Add tests.
519
520 2005-03-02  Douglas Gregor  <doug.gregor@gmail.com>
521
522         * include/tr1/functional (_Has_result_type): Cleanup.
523         (_Result_of_impl): Handle member data pointers correctly.
524         (reference_wrapper): Support invocation.
525         Move repetition code into new file include/tr1/repeat.h.
526         * include/tr1/functional_iterate.h (reference_wrapper): Support
527         invocation.  Cleanup long lines.
528         * include/tr1/ref_wrap_iterate.h (reference_wrapper): Declare
529         invocation operators.
530         * include/tr1/repeat.h: Code repetition header.
531         * include/Makefile.am: Add ref_wrap_iterate.h, repeat.h.
532         * include/Makefile.in: Add ref_wrap_iterate.h, repeat.h.
533         * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
534         New test of reference_wrapper invocation.
535         * testsuite/tr1/3_function_objects/reference_wrapper/typedefs.cc:
536         New test of reference_wrapper typedefs and base classes.
537         * testsuite/tr1/3_function_objects/result_of.cc: Trivial cleanup
538         (e-mail address).
539
540 2005-03-02  Douglas Gregor  <doug.gregor@gmail.com>
541
542         * include/tr1/function (result_of): New class template.
543         * include/tr1/functional/iterator.h: Implementation of TR1
544         result_of.
545         * testsuite/tr1/3_function_objects/result_of.cc: New test
546
547 2005-03-01  Vladimir Merzliakov  <wanderer@rsu.ru>
548
549         * testsuite/26_numerics/cmath/c99_classification_macros_c.cc: Tweak.
550
551 2005-02-28  Benjamin Kosnik  <bkoz@redhat.com>
552
553         * testsuite/tr1/2_general_utilities/memory/shared_ptr/
554         cons/auto_ptr_neg.cc: Correct line numbers.
555
556         * testsuite/testsuite_abi.cc: Add CXXABI_1.3.1.
557
558 2005-02-28  Jonathan Wakely  <redi@gcc.gnu.org>
559
560         * include/tr1/memory: Replace checked_deleter with (unchecked)
561         _Sp_deleter as GCC warns about delete on incomplete types anyway.
562
563 2005-02-28  Jonathan Wakely  <redi@gcc.gnu.org>
564
565         * include/tr1/memory: Add missing "inline" to __throw_bad_weak_ptr.
566
567 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
568
569         PR target/19065
570         * config/cpu/cris/atomicity.h (__exchange_and_add): In asm, use
571         'Q' constraint, not 'm'.
572
573 2005-02-26  Earl Chew  <earl_chew@agilent.com>
574             Christopher Jefferson  <chris@bubblescope.net>
575
576         * include/bits/stl_tree.h (_Rb_tree<>::_M_insert): Don't leak
577         memory if _M_key_compare throws.
578
579 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
580
581         * include/tr1/type_traits: Add the trivial is_union and is_class;
582         add the __is_union_or_class extension.
583         (is_enum, is_empty): Use the latter.
584         * include/tr1/type_traits_fwd.h: Add __is_union_or_class.
585         * testsuite/testsuite_tr1.h: Add UnionType; trivial formatting
586         fixes.
587         * testsuite/tr1/4_metaprogramming/composite_type_traits/
588         is_union_or_class/is_union_or_class.cc: New.
589         * testsuite/tr1/4_metaprogramming/composite_type_traits/
590         is_union_or_class/typedefs.cc: Likewise.
591
592 2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>
593
594         * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Guard
595         wchar_t use with _GLIBCXX_USE_WCHAR_T.
596
597 2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>
598
599         * include/std/std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to
600         _GLIBCXX_USE_C99_COMPLEX.
601         * acinclude.m4: Same.
602         * acconfig.h: Same.
603         * configure: Regenerate.
604         * config.h.in: Same.
605
606 2005-02-24  Paolo Carlini  <pcarlini@suse.de>
607
608         * include/tr1/functional (mem_fn): Avoid _T, badname on
609         Darwin.
610
611 2005-02-23  Douglas Gregor  <doug.gregor@gmail.com>
612
613         * include/tr1/functional (function): New class template.
614         (mem_fn): New function template.
615         Implementations of TR1 function and mem_fn facilities.
616         * include/tr1/functional_iterate.h: Implementations of TR1
617         function and mem_fn facilities.
618         * testsuite/tr1/3_function_objects/function/1.cc: New
619         test of std::tr1::function.
620         * testsuite/tr1/3_function_objects/function/2.cc: New
621         test of std::tr1::function.
622         * testsuite/tr1/3_function_objects/function/3.cc: New
623         test of std::tr1::function.
624         * testsuite/tr1/3_function_objects/function/4.cc: New
625         test of std::tr1::function.
626         * testsuite/tr1/3_function_objects/function/5.cc: New
627         test of std::tr1::function.
628         * testsuite/tr1/3_function_objects/function/6.cc: New
629         test of std::tr1::function.
630         * testsuite/tr1/3_function_objects/function/7.cc: New
631         test of std::tr1::function.
632         * testsuite/tr1/3_function_objects/function/8.cc: New
633         test of std::tr1::function.
634         * testsuite/tr1/3_function_objects/function/9.cc: New
635         test of std::tr1::function.
636         * testsuite/tr1/3_function_objects/mem_fn.cc: New test of
637         std::tr1::mem_fn.
638
639 2005-02-23  Paolo Carlini  <pcarlini@suse.de>
640
641         * include/tr1/type_traits: Implement is_convertible.
642         * testsuite/tr1/4_metaprogramming/relationships_between_types/
643         is_convertible/is_convertible.cc: New.
644         * testsuite/tr1/4_metaprogramming/relationships_between_types/
645         is_convertible/typedefs.cc: Likewise.
646         * testsuite/testsuite_tr1.h: Add class DerivedType.
647
648         * include/tr1/type_traits (is_function): Don't mistake references
649         to function types for function types.
650         * testsuite/tr1/4_metaprogramming/primary_type_categories/
651         is_function/is_function.cc: Add testcase.
652
653 2005-02-22  Benjamin Kosnik  <bkoz@redhat.com>
654
655         * scripts/check_performance: Tweaks.
656
657         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/2.cc: Name
658         output file with extension that clean rules can find.
659
660 2005-02-22  Richard Henderson  <rth@redhat.com>
661
662         PR libstdc++/20091
663         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't special case
664         decrement of uncaughtExceptions for rethrow.
665
666 2005-02-22  Paolo Carlini  <pcarlini@suse.de>
667
668         * include/tr1/functional: Fix License to GPL with exception.
669         * include/tr1/hashtable: Likewise.
670         * include/tr1/tuple: Likewise.
671         * include/tr1/type_traits: Likewise.
672         * include/tr1/type_traits_fwd.h: Likewise.
673         * include/tr1/unordered_map: Likewise.
674         * include/tr1/unordered_set: Likewise.
675         * include/tr1/utility: Likewise.
676
677 2005-02-22  Paolo Carlini  <pcarlini@suse.de>
678
679         * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
680         auto_ptr_neg.cc: Add missing dg-do compile directive.
681         * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
682         auto_ptr_rvalue_neg.cc: Likewise.
683         * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
684         shared_ptr_neg.cc: Likewise.
685         * testsuite/tr1/2_general_utilities/memory/shared_ptr/cons/
686         auto_ptr_neg.cc: Likewise.
687         * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
688         reset_neg.cc: Likewise.
689         * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
690         swap_neg.cc: Likewise.
691
692 2005-02-22  Jonathan Wakely  <redi@gcc.gnu.org>
693
694         * include/Makefile.am, include/Makefile.in: Fix accidental extra
695         change from previous commit.
696
697 2005-02-21  Jonathan Wakely  <redi@gcc.gnu.org>
698
699         * include/tr1/memory: New file.
700         * include/Makefile.am, include/Makefile.in: Add new TR1 header.
701         * testsuite/tr1/2_general_utilities/memory/
702         enable_shared_from_this/not_shared.cc: New test.
703         * testsuite/tr1/2_general_utilities/memory/
704         enable_shared_from_this/not_shared2.cc: New test.
705         * testsuite/tr1/2_general_utilities/memory/
706         enable_shared_from_this/not_shared3.cc: New test.
707         * testsuite/tr1/2_general_utilities/memory/
708         enable_shared_from_this/shared.cc: New test.
709         * testsuite/tr1/2_general_utilities/memory/
710         enable_shared_from_this/still_shared.cc: New test.
711         * testsuite/tr1/2_general_utilities/memory/
712         shared_ptr/assign/assign.cc: New test.
713         * testsuite/tr1/2_general_utilities/memory/
714         shared_ptr/assign/auto_ptr.cc: New test.
715         * testsuite/tr1/2_general_utilities/memory/
716         shared_ptr/assign/auto_ptr_neg.cc: New test.
717         * testsuite/tr1/2_general_utilities/memory/
718         shared_ptr/assign/auto_ptr_rvalue_neg.cc: New test.
719         * testsuite/tr1/2_general_utilities/memory/
720         shared_ptr/assign/shared_ptr.cc: New test.
721         * testsuite/tr1/2_general_utilities/memory/
722         shared_ptr/assign/shared_ptr_neg.cc: New test.
723         * testsuite/tr1/2_general_utilities/memory/
724         shared_ptr/comparison/cmp.cc: New test.
725         * testsuite/tr1/2_general_utilities/memory/
726         shared_ptr/cons/auto_ptr.cc: New test.
727         * testsuite/tr1/2_general_utilities/memory/
728         shared_ptr/cons/auto_ptr_neg.cc: New test.
729         * testsuite/tr1/2_general_utilities/memory/
730         shared_ptr/cons/copy.cc: New test.
731         * testsuite/tr1/2_general_utilities/memory/
732         shared_ptr/cons/default.cc: New test.
733         * testsuite/tr1/2_general_utilities/memory/
734         shared_ptr/cons/pointer.cc: New test.
735         * testsuite/tr1/2_general_utilities/memory/
736         shared_ptr/cons/weak_ptr.cc: New test.
737         * testsuite/tr1/2_general_utilities/memory/
738         shared_ptr/cons/weak_ptr_expired.cc: New test.
739         * testsuite/tr1/2_general_utilities/memory/
740         shared_ptr/dest/dest.cc: New test.
741         * testsuite/tr1/2_general_utilities/memory/
742         shared_ptr/misc/io.cc: New test.
743         * testsuite/tr1/2_general_utilities/memory/
744         shared_ptr/misc/swap.cc: New test.
745         * testsuite/tr1/2_general_utilities/memory/
746         shared_ptr/modifiers/reset.cc: New test.
747         * testsuite/tr1/2_general_utilities/memory/
748         shared_ptr/modifiers/reset_neg.cc: New test.
749         * testsuite/tr1/2_general_utilities/memory/
750         shared_ptr/modifiers/swap.cc: New test.
751         * testsuite/tr1/2_general_utilities/memory/
752         shared_ptr/modifiers/swap_neg.cc: New test.
753         * testsuite/tr1/2_general_utilities/memory/
754         shared_ptr/observers/bool_conv.cc: New test.
755         * testsuite/tr1/2_general_utilities/memory/
756         shared_ptr/observers/get.cc: New test.
757         * testsuite/tr1/2_general_utilities/memory/
758         shared_ptr/observers/unique.cc: New test.
759         * testsuite/tr1/2_general_utilities/memory/
760         shared_ptr/observers/use_count.cc: New test.
761
762 2005-02-21  Paolo Carlini  <pcarlini@suse.de>
763
764         * include/tr1/type_traits (is_member_function_pointer):
765         Remove ugly workaround for c++/19076.
766
767 2005-02-21  Paolo Carlini  <pcarlini@suse.de>
768
769         * include/bits/basic_string.tcc (_Rep::_M_destroy): Don't
770         check for this == &_S_empty_rep, it's always false, here.
771
772 2005-02-19  Matt Austern  <austern@gmail.com>
773
774         * include/tr1/functional (tr1_hashtable_define_trivial_hash): Make
775         hash<T>::operator() a const member function for T a fundamental type
776         * include/tr1/hashtable (extract1st::operator()): Declare const.
777         (hash_code_base): Declare all member functions const
778         (hashtable::find): fix call to this->bucket_count()
779         (hashtable::count): Likewise.
780         (hashtable::equal_range): m_incr_bucket applies to iterator, not node.
781         * testsuite/tr1/6_containers/unordered/find/set1.cc: New test.
782         * testsuite/tr1/6_containers/unordered/find/map1.cc: New test.
783         * testsuite/tr1/6_containers/unordered/find/multimap1.cc: New test.
784         * testsuite/tr1/6_containers/unordered/find/multiset1.cc: New test.
785
786 2005-02-19  Hans-Peter Nilsson  <hp@axis.com>
787
788         PR libstdc++/20071
789         * include/tr1/functional (hash<std::wstring>): Wrap in #ifdef
790         _GLIBCXX_USE_WCHAR_T.
791
792 2005-02-18  Richard Henderson  <rth@redhat.com>
793
794         PR libstdc++/10606
795         * config/linker-map.gnu (CXXABI_1.3.1): Add __cxa_get_exception_ptr.
796         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Increment
797         uncaughtExceptions here instead of ...
798         * libsupc++/eh_throw.cc (__cxa_throw) ... here.
799         (__cxa_rethrow): Increment uncaughtExceptions here instead of ...
800         * libsupc++/eh_catch.cc (__cxa_end_catch): ... here.
801         (__cxa_get_exception_ptr): New.
802         * libsupc++/unwind-cxx.h (__cxa_get_exception_ptr): Declare.
803
804 2005-02-18  Matt Austern  <austern@apple.com>
805
806         * testsuite/tr1/6_containers/unordered/insert/array_syntax.cc: Fix
807         test case to use assignment instead of ==
808         * testsuite/tr1/6_containers/unordered/insert/map_range.cc: New test.
809         * testsuite/tr1/6_containers/unordered/insert/multimap_range.cc: New test.
810         * testsuite/tr1/6_containers/unordered/insert/multiset_range.cc: New test.
811         * testsuite/tr1/6_containers/unordered/insert/set_range.cc: New test.
812
813 2005-02-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
814
815         * testsuite/thread/pthread1.cc: Do not invoke pthread_setconcurrency
816         on Solaris 2.6 and below.
817         * testsuite/thread/pthread2.cc: Likewise.
818         * testsuite/thread/pthread3.cc: Likewise.
819         * testsuite/thread/pthread4.cc: Likewise.
820         * testsuite/thread/pthread5.cc: Likewise.
821         * testsuite/thread/pthread6.cc: Likewise.
822         * testsuite/thread/pthread7-rope.cc: Likewise.
823
824 2005-02-17  Matt Austern  <austern@apple.com>
825
826         * include/tr1/functional (hash): New function object.
827         * include/tr1/hashtable: New file.
828         * include/tr1/unordered_set: New file.
829         * include/tr1/unordered_map: New file.
830         * include/Makefile.am: Add three new TR1 headers.
831         * include/Makefile.in: Likewise.
832         * testsuite/tr1/6_containers/unordered/insert/array_syntax.cc: New test.
833         * testsuite/tr1/6_containers/unordered/insert/map_single.cc: New test.
834         * testsuite/tr1/6_containers/unordered/insert/multimap_single.cc: New test.
835         * testsuite/tr1/6_containers/unordered/insert/multiset_single.cc: New test.
836         * testsuite/tr1/6_containers/unordered/insert/set_single.cc: New test.
837         * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: New test.
838         * testsuite/tr1/6_containers/unordered/instantiate/map.cc: New test.
839         * testsuite/tr1/6_containers/unordered/instantiate/multimap.cc: New test.
840         * testsuite/tr1/6_containers/unordered/instantiate/multiset.cc: New test.
841         * testsuite/tr1/6_containers/unordered/instantiate/set.cc: New test.
842
843 2005-02-16  Paolo Carlini  <pcarlini@suse.de>
844
845         * testsuite/23_containers/set/modifiers/16728.cc:
846         Remove redundant include <testsuite_performance.h>.
847
848 2005-02-16  Paolo Carlini  <pcarlini@suse.de>
849
850         PR libstdc++/19829
851         * testsuite/21_strings/basic_string/find/char/3.cc: Fix the test
852         at line #66 to not access str_lit01 beyond its end.
853         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Likewise.
854
855 2005-02-15  Paolo Carlini  <pcarlini@suse.de>
856             Jon Grimm  <jgrimm2@us.ibm.com>
857
858         PR libstdc++/19955
859         * include/bits/locale_facets.h (ctype<char>::_M_narrow_init()):
860         Fix the logic setting _M_narrow_ok: first check whether the
861         transformation is trivial with a dflt == 0, then deal with the
862         special case of zero.
863         * testsuite/22_locale/ctype/narrow/char/19955.cc: New.
864
865         * include/bits/locale_facets.h (ctype<char>::_M_widen_init()):
866         Tweak consistently to use memcmp; minor formatting fixes.
867
868 2005-02-15  Jakub Jelinek  <jakub@redhat.com>
869
870         PR libstdc++/19946
871         * testsuite/demangle/abi_examples/01.cc (main): Adjust for 2005-02-13
872         demangler change.
873         * testsuite/demangle/abi_examples/02.cc (main): Likewise.
874
875 2005-02-13  Richard Guenther  <rguenth@gcc.gnu.org>
876             Paolo Carlini  <pcarlini@suse.de>
877
878         PR libstdc++/11706
879         * include/c_std/std_cmath.h (pow): Use __builtin_powi[lf]
880         for integer overloads.
881
882         * testsuite/26_numerics/cmath/powi.cc: New.
883
884 2005-02-11  Janis Johnson  <janis187@us.ibm.com>
885
886         * testsuite/26_numerics/complex/13450.cc: Fix XFAIL selector.
887         * testsuite/26_numerics/complex/complex_value.cc: Ditto.
888         * testsuite/26_numerics/complex/pow.cc: Ditto.
889
890         * testsuite/lib/libstdc++.exp: Load target-supports-dg.exp.
891         * testsuite/26_numerics/complex/13450.cc: XFAIL for broken_cplxf_arg.
892         * testsuite/26_numerics/complex/complex_value.cc: Ditto.
893         * testsuite/26_numerics/complex/pow.cc: Ditto.
894
895 2005-02-09  Mike Stump  <mrs@apple.com>
896
897         * libsupc++/del_op.cc: Don't include cstdlib when !_GLIBCXX_HOSTED.
898
899 2005-02-09  Janis Johnson  <janis187@us.ibm.com>
900
901         * testsuite/ext/array_allocator/2.cc: XFAIL for powerpc*-*-linux*.
902
903 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
904
905         * config/linker-map.gnu (GLIBCXX_3.4): Add _ZNSdC* and _ZNSdD*.
906
907 2005-02-07  Loren J. Rittle  <ljrittle@acm.org>
908
909         * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Make buf static.
910         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Make ref and
911         src static.
912
913 2005-02-02  Brad Spencer  <spencer@infointeractive.com>
914
915         * debug.html: Fix broken tags.
916         * documentation.html: Same.
917
918 2005-02-02  Andreas Jaeger  <aj@suse.de>
919
920         * testsuite/lib/libstdc++.exp: Revert Geoffrey Keating's patch
921         from 2005-01-28.
922         * testsuite/Makefile.am: Likewise.
923         * testsuite/Makefile.in: Likewise.
924
925 2005-02-01  Paolo Carlini  <pcarlini@suse.de>
926
927         * include/bits/cpp_type_traits.h: Rename _M_type fields to
928         __value, except for __enable_if, _M_type -> __type, consistently
929         with the other traits.
930         * include/bits/stl_algobase.h: Tweak consistently.
931         * include/bits/stl_tree.h: Likewise.
932         * include/bits/valarray_array.h: Likewise.
933         * include/c_std/std_cmath.h: Likewise.
934         * include/debug/safe_iterator.h: Likewise.
935         * include/std/std_complex.h: Likewise.
936
937 2005-01-31  Brad Spencer  <spencer@infointeractive.com>
938
939         * crossconfig.m4: Repair Solaris cross bits for strtold and strtof.
940         * configure: Regenerated.
941
942 2005-01-31  Mark Mitchell  <mark@codesourcery.com>
943
944         * include/std/std_limits.h (numeric_limits<float>::has_denorm):
945         Add required cast.
946         (numeric_limits<double>::has_denorm): Likewise.
947         (numeric_limits<long double>::has_denorm): Likewise.
948
949 2005-01-31  Paolo Carlini  <pcarlini@suse.de>
950             Gabriel Dos Reis  <gdr@integrable-solutions.net>
951
952         * include/bits/cpp_type_traits.h: Add types to the structs thus
953         making type_traits.h redundant; exploit new __truth_type and
954         __traitor helpers.
955         * include/bits/type_traits.h: Remove.
956         * include/Makefile.am: Update.
957         * include/Makefile.in: Regenerate.
958         * include/backward/tempbuf.h: Include cpp_type_traits.h instead.
959         * include/bits/basic_string.h (replace(iterator, iterator,
960         _InputIterator, _InputIterator), _S_construct(_InIterator,
961         _InIterator, const _Alloc&)): Use __is_integer instead.
962         * include/bits/stl_bvector.h (vector(_InputIterator,
963         _InputIterator, const allocator_type&), assign(_InputIterator,
964         _InputIterator), insert(iterator, _InputIterator, _InputIterator)):
965         Likewise.
966         * include/bits/stl_construct.h (_Destroy(_ForwardIterator,
967         _ForwardIterator)): Use __is_scalar.
968         * include/bits/stl_deque.h (deque(_InputIterator, _InputIterator,
969         const allocator_type&), assign(_InputIterator, _InputIterator),
970         insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
971         * include/bits/stl_list.h (assign(_InputIterator, _InputIterator),
972         insert(iterator, _InputIterator, _InputIterator)): Likewise.
973         * include/bits/stl_tempbuf.h (_Temporary_buffer(_ForwardIterator,
974         _ForwardIterator)): Use __is_scalar.
975         * include/bits/stl_uninitialized.h (uninitialized_copy(_InputIterator,
976         _InputIterator, _ForwardIterator), uninitialized_fill(_ForwardIterator,
977         _ForwardIterator, const _Tp&), uninitialized_fill_n(_ForwardIterator,
978         _Size, const _Tp&)): Likewise.
979         * include/bits/stl_vector.h (vector(_InputIterator, _InputIterator,
980         const allocator_type&), assign(_InputIterator, _InputIterator),
981         insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
982         * include/debug/debug.h (__valid_range(const _InputIterator&,
983         const _InputIterator&)): Use __is_integer.
984         * include/ext/slist (assign(_InputIterator, _InputIterator)): Likewise.
985         * include/std/std_string.h: Include cpp_type_traits.h instead.
986
987 2005-01-30  Paolo Carlini  <pcarlini@suse.de>
988
989         PR libstdc++/19642
990         * config/locale/generic/c_locale.h (__convert_from_v): Switch only
991         LC_NUMERIC, and only when actually != "C".
992
993 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
994
995         * include/tr1/type_traits (is_function): Minor consistency tweaks.
996
997 2005-01-28  Geoffrey Keating  <geoffk@apple.com>
998
999         * testsuite/lib/libstdc++.exp (libstdc++_init): Search the path
1000         for the compiler.  Don't set cxxflags.
1001         (v3_target_compile): Search for libv3test.a relative to $objdir.
1002         (lsearch_all_inline): New.
1003         (lsearch_all_inline_not): New.
1004         (v3-list-tests): Rewrite to not need generated files.
1005         * testsuite/Makefile.am (IGNORE_WCHAR_T): New.
1006         (IGNORE_THREAD): New.
1007         (TESTS_TO_IGNORE): New.
1008         (site.exp): Set tests_to_ignore, cxxflags.
1009         * aclocal.m4: Regenerate.
1010         * Makefile.in: Regenerate.
1011         * libmath/Makefile.in: Likewise.
1012         * libsupc++/Makefile.in: Likewise.
1013         * po/Makefile.in: Likewise.
1014         * src/Makefile.in: Likewise.
1015         * testsuite/Makefile.in: Likewise.
1016
1017 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
1018
1019         * include/tr1/type_traits: Implement is_empty.
1020         * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
1021         is_empty.cc: New.
1022         * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
1023         typedefs.cc: Likewise.
1024
1025         * include/tr1/type_traits (__is_abstract_helper): Simplify a bit.
1026
1027 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
1028
1029         * include/tr1/type_traits: Implement is_abstract, by exploiting the
1030         resolution of DR core/337.
1031         * testsuite/testsuite_tr1.h: Add AbstractClass.
1032         * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
1033         is_abstract.cc: New.
1034         * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
1035         typedefs.cc: Likewise.
1036
1037         * include/tr1/type_traits (is_function): Rewrite, use the conversion
1038         F& -> F* instead, thus avoiding problems with abstract classes.
1039         * testsuite/tr1/4_metaprogramming/primary_type_categories/
1040         is_function/is_function.cc: Add a test for tricky AbstractClass.
1041
1042 2005-01-26  Paolo Carlini  <pcarlini@suse.de>
1043
1044         * include/ext/mt_allocator.h
1045         (struct __per_type_pool_policy<,, false>::_S_get_pool,
1046         struct __per_type_pool_policy<,, true>::_S_get_pool): Scale
1047         _M_chunk_size too with sizeof(_Tp), otherwise the allocator
1048         breaks down as soon as sizeof(_Tp) >~ _S_chunk_size / 128;
1049         reduce to 64 the multiplier for _M_max_bytes (safer wrt
1050         _Binmap_type being a short); trivial reformattings.
1051         * testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: New.
1052
1053 2005-01-26  Paolo Carlini  <pcarlini@suse.de>
1054
1055         * acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex
1056         to the final test for enable_c99, thus robustifying it; remove
1057         duplicate final test on ac_99_math.
1058         * configure: Regenerate.
1059
1060         * include/std/std_complex.h: Remove usages of the dead
1061         _GLIBCXX_BUGGY_COMPLEX macro.
1062
1063         * testsuite/26_numerics/cmath/19322.cc: Protect with
1064         _GLIBCXX_USE_C99_MATH instead of the stronger _GLIBCXX_USE_C99,
1065         since only C99 math facilities are involved.
1066         * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
1067         Likewise.
1068
1069 2005-01-25  Loren J. Rittle  <ljrittle@acm.org>
1070
1071         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Map FreeBSD to darwin
1072         instead of generic.  Change autoconf report to "darwin or freebsd".
1073         * configure: Regenerate.
1074         * config/os/bsd/freebsd/ctype_inline.h (ctype<wchar_t>::do_is): Add.
1075         (ctype<wchar_t>::do_scan_is): Likewise.
1076         (ctype<wchar_t>::do_scan_not): Likewise.
1077
1078 2005-01-25  Benjamin Kosnik  <bkoz@redhat.com>
1079
1080         * acinclude.m4 (GLIBCXX_ENABLE_C99): Test for complex math
1081         functions, and enable _GLIBCXX_USE_C99_COMPLEX_MATH if they exist.
1082         * acconfig.h: Add _GLIBCXX_USE_C99_COMPLEX_MATH.
1083         * config.h.in: Regenerate.
1084         * configure: Regenerate.
1085         * include/std/std_complex.h: Protect complex builtins with
1086         _GLIBCXX_USE_C99_COMPLEX_MATH.
1087
1088 2005-01-24  Paolo Carlini  <pcarlini@suse.de>
1089
1090         * include/tr1/type_traits: Implement is_signed and is_unsigned.
1091         * testsuite/tr1/4_metaprogramming/type_properties/
1092         is_signed/is_signed.cc: New.
1093         * testsuite/tr1/4_metaprogramming/type_properties/
1094         is_signed/typedefs.cc: Likewise.
1095         * testsuite/tr1/4_metaprogramming/type_properties/
1096         is_unsigned/is_unsigned.cc: Likewise.
1097         * testsuite/tr1/4_metaprogramming/type_properties/
1098         is_unsigned/typedefs.cc: Likewise.
1099
1100 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
1101
1102         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 34.
1103
1104 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
1105
1106         * testsuite/27_io/basic_ostream/cons/wchar_t/9827.cc: New.
1107         * testsuite/27_io/basic_ostream/endl/wchar_t/1.cc: Likewise.
1108         * testsuite/27_io/basic_ostream/ends/wchar_t/1.cc: Likewise.
1109         * testsuite/27_io/basic_ostream/ends/wchar_t/2.cc: Likewise.
1110         * testsuite/27_io/basic_ostream/exceptions/wchar_t/9561.cc: Likewise.
1111         * testsuite/27_io/basic_ostream/flush/wchar_t/1.cc: Likewise.
1112         * testsuite/27_io/basic_ostream/flush/wchar_t/2.cc: Likewise.
1113         * testsuite/27_io/basic_ostream/flush/wchar_t/
1114         exceptions_badbit_throw.cc: Likewise.
1115         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1116         wchar_t/2.cc: Likewise.
1117         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1118         wchar_t/3.cc: Likewise.
1119         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1120         wchar_t/4.cc: Likewise.
1121         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1122         wchar_t/4402.cc: Likewise.
1123         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1124         wchar_t/5.cc: Likewise.
1125         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1126         wchar_t/6.cc: Likewise.
1127         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1128         wchar_t/9555-oa.cc: Likewise.
1129         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1130         wchar_t/exceptions_badbit_throw.cc: Likewise.
1131         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1132         wchar_t/exceptions_failbit_throw.cc: Likewise.
1133         * testsuite/27_io/basic_ostream/inserters_character/
1134         wchar_t/1.cc: Likewise.
1135         * testsuite/27_io/basic_ostream/inserters_character/
1136         wchar_t/2.cc: Likewise.
1137         * testsuite/27_io/basic_ostream/inserters_character/
1138         wchar_t/3.cc: Likewise.
1139         * testsuite/27_io/basic_ostream/inserters_character/
1140         wchar_t/4.cc: Likewise.
1141         * testsuite/27_io/basic_ostream/inserters_character/
1142         wchar_t/5.cc: Likewise.
1143         * testsuite/27_io/basic_ostream/inserters_character/
1144         wchar_t/6.cc: Likewise.
1145         * testsuite/27_io/basic_ostream/inserters_character/
1146         wchar_t/9555-oc.cc: Likewise.
1147         * testsuite/27_io/basic_ostream/inserters_other/
1148         wchar_t/1.cc: Likewise.
1149         * testsuite/27_io/basic_ostream/inserters_other/
1150         wchar_t/2.cc: Likewise.
1151         * testsuite/27_io/basic_ostream/inserters_other/
1152         wchar_t/3.cc: Likewise.
1153         * testsuite/27_io/basic_ostream/inserters_other/
1154         wchar_t/4.cc: Likewise.
1155         * testsuite/27_io/basic_ostream/inserters_other/
1156         wchar_t/5.cc: Likewise.
1157         * testsuite/27_io/basic_ostream/inserters_other/
1158         wchar_t/9318-out.cc: Likewise.
1159         * testsuite/27_io/basic_ostream/inserters_other/
1160         wchar_t/9424-out.cc: Likewise.
1161         * testsuite/27_io/basic_ostream/inserters_other/
1162         wchar_t/9555-oo.cc: Likewise.
1163         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1164         error_failbit.cc: Likewise.
1165         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1166         exceptions_badbit_throw.cc: Likewise.
1167         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1168         exceptions_failbit_throw.cc: Likewise.
1169         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1170         exceptions_null.cc: Likewise.
1171         * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
1172         * testsuite/27_io/basic_ostream/put/wchar_t/1.cc: Likewise.
1173         * testsuite/27_io/basic_ostream/seekp/char/
1174         exceptions_badbit_throw.cc: Likewise.
1175         * testsuite/27_io/basic_ostream/seekp/wchar_t/
1176         2346-fstream.cc: Likewise.
1177         * testsuite/27_io/basic_ostream/seekp/wchar_t/
1178         2346-sstream.cc: Likewise.
1179         * testsuite/27_io/basic_ostream/seekp/wchar_t/
1180         exceptions_badbit_throw.cc: Likewise.
1181         * testsuite/27_io/basic_ostream/sentry/wchar_t/1.cc: Likewise.
1182         * testsuite/27_io/basic_ostream/sentry/wchar_t/2.cc: Likewise.
1183         * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
1184         * testsuite/27_io/basic_ostream/tellp/wchar_t/2.cc: Likewise.
1185         * testsuite/27_io/basic_ostream/tellp/wchar_t/
1186         exceptions_badbit_throw.cc: Likewise.
1187         * testsuite/27_io/basic_ostream/write/wchar_t/1.cc: Likewise.
1188
1189         * testsuite/data/wostream_inserter_char-1.tst: Likewise.
1190         * testsuite/data/wostream_inserter_char-1.txt: Likewise.
1191         * testsuite/data/wostream_inserter_other-1.tst: Likewise.
1192         * testsuite/data/wostream_inserter_other-2.tst: Likewise.
1193         * testsuite/data/wostream_seeks-1.tst: Likewise.
1194
1195         * testsuite/27_io/basic_ostream/endl/char/1.cc: Minor tweaks.
1196         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise.
1197         * testsuite/27_io/basic_ostream/exceptions/char/9561.cc: Likewise.
1198         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
1199         * testsuite/27_io/basic_ostream/flush/char/2.cc: Likewise.
1200         * testsuite/27_io/basic_ostream/flush/char/
1201         exceptions_badbit_throw.cc: Likewise.
1202         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1203         char/2.cc: Likewise.
1204         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1205         char/3.cc: Likewise.
1206         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1207         char/4.cc: Likewise.
1208         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1209         char/4402.cc: Likewise.
1210         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1211         char/5.cc: Likewise.
1212         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1213         char/6.cc: Likewise.
1214         * testsuite/27_io/basic_ostream/inserters_character/
1215         char/4.cc: Likewise.
1216         * testsuite/27_io/basic_ostream/inserters_other/char/
1217         2.cc: Likewise.
1218         * testsuite/27_io/basic_ostream/inserters_other/char/
1219         5.cc: Likewise.
1220         * testsuite/27_io/basic_ostream/inserters_other/char/
1221         error_failbit.cc: Likewise.
1222         * testsuite/27_io/basic_ostream/inserters_other/char/
1223         exceptions_badbit_throw.cc: Likewise.
1224         * testsuite/27_io/basic_ostream/inserters_other/char/
1225         exceptions_failbit_throw.cc: Likewise.
1226         * testsuite/27_io/basic_ostream/inserters_other/char/
1227         exceptions_null.cc: Likewise.
1228         * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
1229         * testsuite/27_io/basic_ostream/seekp/char/
1230         exceptions_badbit_throw.cc: Likewise.
1231         * testsuite/27_io/basic_ostream/sentry/char/2.cc: Likewise.
1232         * testsuite/27_io/basic_ostream/write/char/1.cc: Likewise.
1233
1234 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
1235
1236         * include/tr1/type_traits (aligned_storage): Use __aligned__ instead
1237         of aligned.
1238
1239 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
1240             Andreas Jaeger  <aj@suse.de>
1241
1242         PR libstdc++/19343
1243         * include/bits/functexcept.h: Mark the helpers as 'noreturn'.
1244
1245 2005-01-21  Loren J. Rittle  <ljrittle@acm.org>
1246
1247         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Allow
1248         lseek on fifo to succeed.  Thus, check for consistent report.
1249
1250 2005-01-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1251
1252         PR libstdc++/19510
1253         * include/bits/stl_list.h (_List_iterator): Initialize _M_node
1254         in constructor.
1255         (_List_const_iterator): Likewise.
1256         * include/bits/stl_tree.h (_Rb_tree_iterator): Likewise.
1257         (_Rb_tree_const_iterator): Likewise.
1258
1259         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1260         * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
1261
1262 2005-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1263
1264         * testsuite/Makefile.am (check-compile): New.
1265         * testsuite/Makefile.in: Regenerate.
1266         * scripts/check_compile_time: New.
1267         * scripts/check_performance: Tweaks.
1268
1269 2005-01-19  Paolo Carlini  <pcarlini@suse.de>
1270
1271         PR libstdc++/19535
1272         * include/tr1/utility (struct __pair_get<1>::__get, __const_get):
1273         Fix typo in the return type.
1274         * testsuite/tr1/6_containers/utility/19535.cc: New.
1275
1276 2005-01-19  Loren J. Rittle  <ljrittle@acm.org>
1277
1278         * include/ext/array_allocator.h (array_allocator<>::allocate):
1279         Avoid __used.  Use __array_used instead.
1280         * docs/html/17_intro/BADNAMES: Add list for FreeBSD.
1281
1282 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
1283
1284         * config/os/aix/os_defines.h (_XOPEN_SOURCE): Delete.
1285         (_XOPEN_SOURCE_EXTENDED): Delete.
1286
1287 2005-01-18  Benjamin Kosnik  <bkoz@redhat.com>
1288
1289         * testsuite/testsuite_performance.h (time_counter::start):
1290         Clear. Tweaks.
1291         (clear_counters): Inline.
1292         (start_counters): Inline.
1293         (stop_counters): Inline.
1294         * testsuite/performance/20_util/allocator/map_thread.cc: Return.
1295         * testsuite/performance/20_util/allocator/insert.cc: Remove bogus
1296         return, add return.
1297         * testsuite/performance/20_util/allocator/map_thread.cc: Same.
1298
1299 2005-01-17  Paolo Carlini  <pcarlini@suse.de>
1300
1301         PR libstdc++/19433
1302         * include/bits/stl_tree.h (_Rb_tree<>::insert_unique(iterator,
1303         const _Val&), _Rb_tree<>::insert_equal(iterator, const _Val&)):
1304         Obtain amortized constant complexity if t is inserted right after
1305         p - not before p - as per Table 69.
1306         * testsuite/performance/23_containers/set_insert_from_sorted.cc: New.
1307
1308         * testsuite/23_containers/multiset/insert/2.cc: New.
1309         * testsuite/23_containers/set/insert/1.cc: Likewise.
1310
1311         * testsuite/performance/23_containers/set_create_from_sorted.cc:
1312         Simplify.
1313
1314         * include/bits/stl_tree.h: Add a few missing std:: qualifications.
1315
1316 2005-01-16  Jonathan Wakely  <redi@gcc.gnu.org>
1317
1318         * include/ext/rope: Qualify calls to std::copy() by sequence_buffer.
1319         * testsuite/ext/rope/4.cc: Add.
1320
1321 2005-01-16  Lorenz Minder  <lminder@gmx.net>
1322             Paolo Carlini  <pcarlini@suse.de>
1323
1324         PR libstdc++/19322
1325         * include/c_std/std_cmath.h: Define the C99 classification facilities
1326         directly inside namespace std:.
1327         * testsuite/26_numerics/cmath/19322.cc: New.
1328
1329 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
1330
1331         * config/os/aix/os_defines.h (_G_USING_THUNKS): Delete.
1332
1333 2005-01-14  Paolo Carlini  <pcarlini@suse.de>
1334
1335         PR libstdc++/19422
1336         * include/bits/stl_tree.h (_Rb_tree<>::insert_equal(_II, _II),
1337         _Rb_tree<>::insert_unique(_II, _II)): Use insert_equal (insert_unique,
1338         respectively) with hint (end()).
1339         * testsuite/performance/23_containers/set_create_from_sorted.cc: New.
1340
1341 2005-01-13  Geoffrey Keating  <geoffk@apple.com>
1342
1343         * configure.host (darwin): On darwin8 or later, no need to build
1344         libstdc++ with -flat_namespace.
1345
1346 2005-01-13  Jonathan Wakely  <redi@gcc.gnu.org>
1347
1348         * docs/doxygen/user.cfg.in: Set HAVE_DOT back to YES.
1349
1350 2005-01-13  Paolo Carlini  <pcarlini@suse.de>
1351
1352         * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
1353         Re-enable commented-out test for double type.
1354
1355 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
1356             Benjamin Kosnik  <bkoz@redhat.com>
1357
1358         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1359         basic_istream<char>::ignore(streamsize, int_type),
1360         basic_istream<wchar_t>::ignore(streamsize),
1361         basic_istream<wchar_t>::ignore(streamsize, int_type)): In case
1362         more than numeric_limits<streamsize>::max() chars are skipped,
1363         set _M_gcount = max().
1364         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1365         int_type)): Likewise; keep simple, don't forward.
1366
1367 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
1368
1369         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1370         basic_istream<char>::ignore(streamsize, int_type),
1371         basic_istream<wchar_t>::ignore(streamsize),
1372         basic_istream<wchar_t>::ignore(streamsize, int_type)): Revert
1373         2005-01-05 change: actually, the previous behavior is conforming
1374         and consistent with that of get(char_type*, streamsize, char_type),
1375         albeit slightly different from that of 3.3/3.4 in a corner case
1376         due to the use of snextc.
1377         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1378         int_type)): Likewise.
1379         * testsuite/27_io/basic_istream/ignore/char/4.cc: Remove.
1380         * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
1381
1382 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
1383
1384         * include/tr1/type_traits: Implement alignment_of and aligned_storage.
1385         * testsuite/tr1/4_metaprogramming/other_transformations/
1386         aligned_storage/aligned_storage.cc: New.
1387         * testsuite/tr1/4_metaprogramming/other_transformations/
1388         aligned_storage/typedefs.cc: Likewise.
1389         * testsuite/tr1/4_metaprogramming/type_properties/
1390         alignment_of/alignment_of.cc: Likewise.
1391         * testsuite/tr1/4_metaprogramming/type_properties/
1392         alignment_of/typedefs.cc: Likewise.
1393
1394 2005-01-10  Paolo Carlini  <pcarlini@suse.de>
1395
1396         * Makefile.in: Regenerate.
1397         * libmath/Makefile.in: Likewise.
1398         * libsupc++/Makefile.in: Likewise.
1399         * po/Makefile.in: Likewise.
1400         * src/Makefile.in: Likewise.
1401         * testsuite/Makefile.in: Likewise.
1402
1403 2005-01-10  Paolo Carlini  <pcarlini@suse.de>
1404
1405         * include/bits/stl_algobase.h (lexicographical_compare):
1406         Fix concept check.
1407
1408 2005-01-07  Benjamin Kosnik  <bkoz@redhat.com>
1409
1410         * acinclude.m4: Remove CCODECVT_H.
1411         * configure: Regenerate.
1412         * include/Makefile.am (host_headers_extra): Move to...
1413         (ext_headers): ...here.
1414         * include/Makefile.in: Regenerate.
1415         * include/ext/enc_filebuf: Remove enc_filebuf, consolidate
1416         enc_traits to...
1417         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Move...
1418         * include/ext/codecvt_specializations.h: ...here. Remove
1419         _GLIBCXX_USE___ENC_TRAITS.
1420         (__enc_traits): To __encoding_state, put in __gnu_cxx namespace.
1421         (enc_char_traits): To __encoding_char_traits, put in __gnu_cxx
1422         namespace.
1423         * config/locale/generic/codecvt_specializations.h: Remove.
1424         * include/bits/codecvt.h: Remove codecvt_specializations.h include.
1425         * src/codecvt.cc: Remove __enc_traits::_S_max_size.
1426
1427 2005-01-06  Benjamin Kosnik  <bkoz@redhat.com>
1428
1429         * include/bits/fstream.tcc: Remove unnecessary qualifications for
1430         uglified data members of basic_filebuf, including _M_buf,
1431         _M_buf_size, _M_mode, _M_pback_init.
1432         * include/std/std_fstream.h: Same.
1433
1434 2005-01-05  Benjamin Kosnik  <bkoz@redhat.com>
1435
1436         * testsuite/testsuite_hooks.h:
1437         (copy_constructor::mark_call):  Use __throw_runtime_error.
1438         (assignment_operator::mark_call): Same.
1439         * testsuite/testsuite_hooks.cc (verify_demangle): Same.
1440         (locale_data): Remove, just use runtime_error directly.
1441         (environment_variable): Same.
1442         (not_found): Same.
1443         (run_tests_wrapped_locale): Use __throw_runtime_error.
1444         (run_tests_wrapped_env): Same.
1445         (semaphore::semaphore): Same.
1446         (semaphore::signal): Same.
1447         (semaphore::wait): Same.
1448         * testsuite/testsuite_abi.h (symbol_error): Remove, use logic_error.
1449         * testsuite/testsuite_abi.cc (get_symbol): Use __throw_logic_error.
1450         (create_symbols): Use __throw_runtime_error.
1451         * src/bitmap_allocator.cc: Use __throw_bad_alloc.
1452
1453 2005-01-05  Mark Mitchell  <mark@codesourcery.com>
1454
1455         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Remove child
1456         process.
1457
1458 2005-01-05  Paolo Carlini  <pcarlini@suse.de>
1459
1460         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1461         basic_istream<char>::ignore(streamsize, int_type),
1462         basic_istream<wchar_t>::ignore(streamsize),
1463         basic_istream<wchar_t>::ignore(streamsize, int_type)): At the end,
1464         first check _M_gcount vs __n.
1465         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1466         int_type)): Likewise.
1467         * testsuite/27_io/basic_istream/ignore/char/4.cc: New.
1468         * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
1469
1470 2005-01-03  Mark Mitchell  <mark@codesourcery.com>
1471
1472         * testsuite/testsuite_hooks.cc: Use __throw_exception_again
1473         instead of just throw.
1474
1475         * testsuite/testsuite_hooks.cc: Update coypright and follow style
1476         guidelines.
1477         * testsuite/testsuite_hooks.h: Likewise.
1478         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
1479         semaphores, not sleep.
1480         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
1481         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
1482         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
1483         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
1484         Likewise.
1485         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
1486         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1487         * testsuite/27_io/objects/char/7.cc: Likewise.
1488         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
1489         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
1490         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
1491
1492         * configure.ac: Check for sys/ipc.h and sys/sem.h.
1493         * config.h.in: Regenerated.
1494         * configure: Likewise.
1495         * testsuite/testsuite_hooks.cc (_GLIBCXX_SYSV_SEM): Conditionally
1496         define.
1497         (sys/types.h): Include.
1498         (sys/ipc.h): Likewise.
1499         (sys/sem.h): Likewise.
1500         (__gnu_test::semun): New type.
1501         (__gnu_test::semaphore::sempaphore): New function.
1502         (__gnu_test::semaphore::~semaphore): Likewise.
1503         (__gnu_test::semaphore::wait): Likewise.
1504         (__gnu_test::semaphore::signal): Likewise.
1505         * testsuite/testsuite_hooks.h (__gnu_test::semaphore): New class.
1506         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
1507         semaphores, not sleep.
1508         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
1509         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
1510         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
1511         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
1512         Likewise.
1513         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
1514         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1515         * testsuite/27_io/objects/char/7.cc: Likewise.
1516         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
1517         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
1518         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
1519
1520 2005-01-03  Paolo Carlini  <pcarlini@suse.de>
1521
1522         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1523         int_type)): Reset _M_gcount to numeric_limits<streamsize>::min().
1524         * src/istream.cc (basic_istream<char>::ignore(streamsize, int_type),
1525         basic_istream<wchar_t>::ignore(streamsize, int_type)): Likewise.
1526         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1527         basic_istream<wchar_t>::ignore(streamsize)): Likewise; fix a typo.
1528
1529 2005-01-02  Paolo Carlini  <pcarlini@suse.de>
1530
1531         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1532         basic_istream<char>::ignore(streamsize, int_type),
1533         basic_istream<wchar_t>::ignore(streamsize),
1534         basic_istream<wchar_t>::ignore(streamsize, int_type)): Avoid
1535         _M_gcount overflows.
1536         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1537         int_type)): Likewise; use snextc in the main loop, consistently
1538         with the specializations above.
1539
1540 2005-01-02  Chris Jefferson  <chris@bubblescope.net>
1541
1542         * include/bits/stl_algobase.h (mismatch): Correct concept check.
1543
1544 2005-01-01  Paolo Carlini  <pcarlini@suse.de>
1545
1546         * testsuite/ext/enc_filebuf/char/13189.cc: Fix, first include
1547         testsuite_hooks.h, to know whether including ext/enc_filebuf.h.
1548         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1549
1550 2005-01-01  Paolo Carlini  <pcarlini@suse.de>
1551
1552         * testsuite/27_io/basic_istream/extractors_character/char/1.cc: Fix,
1553         null-terminate array1 at the outset.
1554         * testsuite/27_io/basic_istream/extractors_character/wchar_t/1.cc:
1555         Likewise.