OSDN Git Service

c940dc7dc08eb6bdfbb5b01b8450332d12e5c3f1
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2005-02-09  Mike Stump  <mrs@apple.com>
2
3         * libsupc++/del_op.cc: Don't include cstdlib when !_GLIBCXX_HOSTED.
4
5 2005-02-09  Janis Johnson  <janis187@us.ibm.com>
6
7         * testsuite/ext/array_allocator/2.cc: XFAIL for powerpc*-*-linux*.
8
9 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
10
11         * config/linker-map.gnu (GLIBCXX_3.4): Add _ZNSdC* and _ZNSdD*.
12
13 2005-02-07  Loren J. Rittle  <ljrittle@acm.org>
14
15         * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Make buf static.
16         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Make ref and
17         src static.
18
19 2005-02-02  Brad Spencer  <spencer@infointeractive.com>
20
21         * debug.html: Fix broken tags.
22         * documentation.html: Same.
23
24 2005-02-02  Andreas Jaeger  <aj@suse.de>
25
26         * testsuite/lib/libstdc++.exp: Revert Geoffrey Keating's patch
27         from 2005-01-28.
28         * testsuite/Makefile.am: Likewise.
29         * testsuite/Makefile.in: Likewise.
30
31 2005-02-01  Paolo Carlini  <pcarlini@suse.de>
32
33         * include/bits/cpp_type_traits.h: Rename _M_type fields to
34         __value, except for __enable_if, _M_type -> __type, consistently
35         with the other traits.
36         * include/bits/stl_algobase.h: Tweak consistently.
37         * include/bits/stl_tree.h: Likewise.
38         * include/bits/valarray_array.h: Likewise.
39         * include/c_std/std_cmath.h: Likewise.
40         * include/debug/safe_iterator.h: Likewise.
41         * include/std/std_complex.h: Likewise.
42
43 2005-01-31  Brad Spencer  <spencer@infointeractive.com>
44
45         * crossconfig.m4: Repair Solaris cross bits for strtold and strtof.
46         * configure: Regenerated.       
47
48 2005-01-31  Mark Mitchell  <mark@codesourcery.com>
49
50         * include/std/std_limits.h (numeric_limits<float>::has_denorm):
51         Add required cast.
52         (numeric_limits<double>::has_denorm): Likewise.
53         (numeric_limits<long double>::has_denorm): Likewise.
54
55 2005-01-31  Paolo Carlini  <pcarlini@suse.de>
56             Gabriel Dos Reis  <gdr@integrable-solutions.net>
57
58         * include/bits/cpp_type_traits.h: Add types to the structs thus
59         making type_traits.h redundant; exploit new __truth_type and
60         __traitor helpers.
61         * include/bits/type_traits.h: Remove.
62         * include/Makefile.am: Update.
63         * include/Makefile.in: Regenerate.
64         * include/backward/tempbuf.h: Include cpp_type_traits.h instead.
65         * include/bits/basic_string.h (replace(iterator, iterator,
66         _InputIterator, _InputIterator), _S_construct(_InIterator,
67         _InIterator, const _Alloc&)): Use __is_integer instead.
68         * include/bits/stl_bvector.h (vector(_InputIterator,
69         _InputIterator, const allocator_type&), assign(_InputIterator,
70         _InputIterator), insert(iterator, _InputIterator, _InputIterator)):
71         Likewise.
72         * include/bits/stl_construct.h (_Destroy(_ForwardIterator,
73         _ForwardIterator)): Use __is_scalar.
74         * include/bits/stl_deque.h (deque(_InputIterator, _InputIterator,
75         const allocator_type&), assign(_InputIterator, _InputIterator),
76         insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
77         * include/bits/stl_list.h (assign(_InputIterator, _InputIterator),
78         insert(iterator, _InputIterator, _InputIterator)): Likewise.
79         * include/bits/stl_tempbuf.h (_Temporary_buffer(_ForwardIterator,
80         _ForwardIterator)): Use __is_scalar.
81         * include/bits/stl_uninitialized.h (uninitialized_copy(_InputIterator,
82         _InputIterator, _ForwardIterator), uninitialized_fill(_ForwardIterator,
83         _ForwardIterator, const _Tp&), uninitialized_fill_n(_ForwardIterator,
84         _Size, const _Tp&)): Likewise.
85         * include/bits/stl_vector.h (vector(_InputIterator, _InputIterator,
86         const allocator_type&), assign(_InputIterator, _InputIterator),
87         insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
88         * include/debug/debug.h (__valid_range(const _InputIterator&,
89         const _InputIterator&)): Use __is_integer.
90         * include/ext/slist (assign(_InputIterator, _InputIterator)): Likewise.
91         * include/std/std_string.h: Include cpp_type_traits.h instead.
92
93 2005-01-30  Paolo Carlini  <pcarlini@suse.de>
94
95         PR libstdc++/19642
96         * config/locale/generic/c_locale.h (__convert_from_v): Switch only
97         LC_NUMERIC, and only when actually != "C".
98
99 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
100
101         * include/tr1/type_traits (is_function): Minor consistency tweaks.
102
103 2005-01-28  Geoffrey Keating  <geoffk@apple.com>
104
105         * testsuite/lib/libstdc++.exp (libstdc++_init): Search the path
106         for the compiler.  Don't set cxxflags.
107         (v3_target_compile): Search for libv3test.a relative to $objdir.
108         (lsearch_all_inline): New.
109         (lsearch_all_inline_not): New.
110         (v3-list-tests): Rewrite to not need generated files.
111         * testsuite/Makefile.am (IGNORE_WCHAR_T): New.
112         (IGNORE_THREAD): New.
113         (TESTS_TO_IGNORE): New.
114         (site.exp): Set tests_to_ignore, cxxflags.
115         * aclocal.m4: Regenerate.
116         * Makefile.in: Regenerate.
117         * libmath/Makefile.in: Likewise.
118         * libsupc++/Makefile.in: Likewise.
119         * po/Makefile.in: Likewise.
120         * src/Makefile.in: Likewise.
121         * testsuite/Makefile.in: Likewise.
122
123 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
124
125         * include/tr1/type_traits: Implement is_empty.
126         * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
127         is_empty.cc: New.
128         * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
129         typedefs.cc: Likewise.
130
131         * include/tr1/type_traits (__is_abstract_helper): Simplify a bit.
132
133 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
134
135         * include/tr1/type_traits: Implement is_abstract, by exploiting the
136         resolution of DR core/337.
137         * testsuite/testsuite_tr1.h: Add AbstractClass.
138         * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
139         is_abstract.cc: New.
140         * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
141         typedefs.cc: Likewise.
142         
143         * include/tr1/type_traits (is_function): Rewrite, use the conversion
144         F& -> F* instead, thus avoiding problems with abstract classes.
145         * testsuite/tr1/4_metaprogramming/primary_type_categories/
146         is_function/is_function.cc: Add a test for tricky AbstractClass.
147
148 2005-01-26  Paolo Carlini  <pcarlini@suse.de>
149
150         * include/ext/mt_allocator.h
151         (struct __per_type_pool_policy<,, false>::_S_get_pool,
152         struct __per_type_pool_policy<,, true>::_S_get_pool): Scale
153         _M_chunk_size too with sizeof(_Tp), otherwise the allocator
154         breaks down as soon as sizeof(_Tp) >~ _S_chunk_size / 128;
155         reduce to 64 the multiplier for _M_max_bytes (safer wrt
156         _Binmap_type being a short); trivial reformattings.
157         * testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: New.
158
159 2005-01-26  Paolo Carlini  <pcarlini@suse.de>
160
161         * acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex
162         to the final test for enable_c99, thus robustifying it; remove
163         duplicate final test on ac_99_math.
164         * configure: Regenerate.
165
166         * include/std/std_complex.h: Remove usages of the dead
167         _GLIBCXX_BUGGY_COMPLEX macro.
168
169         * testsuite/26_numerics/cmath/19322.cc: Protect with
170         _GLIBCXX_USE_C99_MATH instead of the stronger _GLIBCXX_USE_C99,
171         since only C99 math facilities are involved.
172         * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
173         Likewise.
174
175 2005-01-25  Loren J. Rittle  <ljrittle@acm.org>
176
177         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Map FreeBSD to darwin
178         instead of generic.  Change autoconf report to "darwin or freebsd".
179         * configure: Regenerate.
180         * config/os/bsd/freebsd/ctype_inline.h (ctype<wchar_t>::do_is): Add.
181         (ctype<wchar_t>::do_scan_is): Likewise.
182         (ctype<wchar_t>::do_scan_not): Likewise.
183
184 2005-01-25  Benjamin Kosnik  <bkoz@redhat.com>
185
186         * acinclude.m4 (GLIBCXX_ENABLE_C99): Test for complex math
187         functions, and enable _GLIBCXX_USE_C99_COMPLEX_MATH if they exist.
188         * acconfig.h: Add _GLIBCXX_USE_C99_COMPLEX_MATH.
189         * config.h.in: Regenerate.
190         * configure: Regenerate.
191         * include/std/std_complex.h: Protect complex builtins with
192         _GLIBCXX_USE_C99_COMPLEX_MATH.
193
194 2005-01-24  Paolo Carlini  <pcarlini@suse.de>
195
196         * include/tr1/type_traits: Implement is_signed and is_unsigned.
197         * testsuite/tr1/4_metaprogramming/type_properties/
198         is_signed/is_signed.cc: New.
199         * testsuite/tr1/4_metaprogramming/type_properties/
200         is_signed/typedefs.cc: Likewise.
201         * testsuite/tr1/4_metaprogramming/type_properties/
202         is_unsigned/is_unsigned.cc: Likewise.
203         * testsuite/tr1/4_metaprogramming/type_properties/
204         is_unsigned/typedefs.cc: Likewise.
205
206 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
207
208         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 34.
209
210 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
211
212         * testsuite/27_io/basic_ostream/cons/wchar_t/9827.cc: New.
213         * testsuite/27_io/basic_ostream/endl/wchar_t/1.cc: Likewise.
214         * testsuite/27_io/basic_ostream/ends/wchar_t/1.cc: Likewise.
215         * testsuite/27_io/basic_ostream/ends/wchar_t/2.cc: Likewise.
216         * testsuite/27_io/basic_ostream/exceptions/wchar_t/9561.cc: Likewise.
217         * testsuite/27_io/basic_ostream/flush/wchar_t/1.cc: Likewise.
218         * testsuite/27_io/basic_ostream/flush/wchar_t/2.cc: Likewise.
219         * testsuite/27_io/basic_ostream/flush/wchar_t/
220         exceptions_badbit_throw.cc: Likewise.
221         * testsuite/27_io/basic_ostream/inserters_arithmetic/
222         wchar_t/2.cc: Likewise.
223         * testsuite/27_io/basic_ostream/inserters_arithmetic/
224         wchar_t/3.cc: Likewise.
225         * testsuite/27_io/basic_ostream/inserters_arithmetic/
226         wchar_t/4.cc: Likewise.
227         * testsuite/27_io/basic_ostream/inserters_arithmetic/
228         wchar_t/4402.cc: Likewise.
229         * testsuite/27_io/basic_ostream/inserters_arithmetic/
230         wchar_t/5.cc: Likewise.
231         * testsuite/27_io/basic_ostream/inserters_arithmetic/
232         wchar_t/6.cc: Likewise.
233         * testsuite/27_io/basic_ostream/inserters_arithmetic/
234         wchar_t/9555-oa.cc: Likewise.
235         * testsuite/27_io/basic_ostream/inserters_arithmetic/
236         wchar_t/exceptions_badbit_throw.cc: Likewise.
237         * testsuite/27_io/basic_ostream/inserters_arithmetic/
238         wchar_t/exceptions_failbit_throw.cc: Likewise.
239         * testsuite/27_io/basic_ostream/inserters_character/
240         wchar_t/1.cc: Likewise.
241         * testsuite/27_io/basic_ostream/inserters_character/
242         wchar_t/2.cc: Likewise.
243         * testsuite/27_io/basic_ostream/inserters_character/
244         wchar_t/3.cc: Likewise.
245         * testsuite/27_io/basic_ostream/inserters_character/
246         wchar_t/4.cc: Likewise.
247         * testsuite/27_io/basic_ostream/inserters_character/
248         wchar_t/5.cc: Likewise.
249         * testsuite/27_io/basic_ostream/inserters_character/
250         wchar_t/6.cc: Likewise.
251         * testsuite/27_io/basic_ostream/inserters_character/
252         wchar_t/9555-oc.cc: Likewise.
253         * testsuite/27_io/basic_ostream/inserters_other/
254         wchar_t/1.cc: Likewise.
255         * testsuite/27_io/basic_ostream/inserters_other/
256         wchar_t/2.cc: Likewise.
257         * testsuite/27_io/basic_ostream/inserters_other/
258         wchar_t/3.cc: Likewise.
259         * testsuite/27_io/basic_ostream/inserters_other/
260         wchar_t/4.cc: Likewise.
261         * testsuite/27_io/basic_ostream/inserters_other/
262         wchar_t/5.cc: Likewise.
263         * testsuite/27_io/basic_ostream/inserters_other/
264         wchar_t/9318-out.cc: Likewise.
265         * testsuite/27_io/basic_ostream/inserters_other/
266         wchar_t/9424-out.cc: Likewise.
267         * testsuite/27_io/basic_ostream/inserters_other/
268         wchar_t/9555-oo.cc: Likewise.
269         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
270         error_failbit.cc: Likewise.
271         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
272         exceptions_badbit_throw.cc: Likewise.
273         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
274         exceptions_failbit_throw.cc: Likewise.
275         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
276         exceptions_null.cc: Likewise.
277         * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
278         * testsuite/27_io/basic_ostream/put/wchar_t/1.cc: Likewise.
279         * testsuite/27_io/basic_ostream/seekp/char/
280         exceptions_badbit_throw.cc: Likewise.
281         * testsuite/27_io/basic_ostream/seekp/wchar_t/
282         2346-fstream.cc: Likewise.
283         * testsuite/27_io/basic_ostream/seekp/wchar_t/
284         2346-sstream.cc: Likewise.
285         * testsuite/27_io/basic_ostream/seekp/wchar_t/
286         exceptions_badbit_throw.cc: Likewise.
287         * testsuite/27_io/basic_ostream/sentry/wchar_t/1.cc: Likewise.
288         * testsuite/27_io/basic_ostream/sentry/wchar_t/2.cc: Likewise.
289         * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
290         * testsuite/27_io/basic_ostream/tellp/wchar_t/2.cc: Likewise.
291         * testsuite/27_io/basic_ostream/tellp/wchar_t/
292         exceptions_badbit_throw.cc: Likewise.
293         * testsuite/27_io/basic_ostream/write/wchar_t/1.cc: Likewise.
294
295         * testsuite/data/wostream_inserter_char-1.tst: Likewise.
296         * testsuite/data/wostream_inserter_char-1.txt: Likewise.
297         * testsuite/data/wostream_inserter_other-1.tst: Likewise.
298         * testsuite/data/wostream_inserter_other-2.tst: Likewise.
299         * testsuite/data/wostream_seeks-1.tst: Likewise.
300
301         * testsuite/27_io/basic_ostream/endl/char/1.cc: Minor tweaks.
302         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise.
303         * testsuite/27_io/basic_ostream/exceptions/char/9561.cc: Likewise. 
304         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
305         * testsuite/27_io/basic_ostream/flush/char/2.cc: Likewise.
306         * testsuite/27_io/basic_ostream/flush/char/
307         exceptions_badbit_throw.cc: Likewise.
308         * testsuite/27_io/basic_ostream/inserters_arithmetic/
309         char/2.cc: Likewise.
310         * testsuite/27_io/basic_ostream/inserters_arithmetic/
311         char/3.cc: Likewise.
312         * testsuite/27_io/basic_ostream/inserters_arithmetic/
313         char/4.cc: Likewise.
314         * testsuite/27_io/basic_ostream/inserters_arithmetic/
315         char/4402.cc: Likewise.
316         * testsuite/27_io/basic_ostream/inserters_arithmetic/
317         char/5.cc: Likewise.
318         * testsuite/27_io/basic_ostream/inserters_arithmetic/
319         char/6.cc: Likewise.
320         * testsuite/27_io/basic_ostream/inserters_character/
321         char/4.cc: Likewise.
322         * testsuite/27_io/basic_ostream/inserters_other/char/
323         2.cc: Likewise.
324         * testsuite/27_io/basic_ostream/inserters_other/char/
325         5.cc: Likewise.
326         * testsuite/27_io/basic_ostream/inserters_other/char/
327         error_failbit.cc: Likewise.
328         * testsuite/27_io/basic_ostream/inserters_other/char/
329         exceptions_badbit_throw.cc: Likewise.
330         * testsuite/27_io/basic_ostream/inserters_other/char/
331         exceptions_failbit_throw.cc: Likewise.
332         * testsuite/27_io/basic_ostream/inserters_other/char/
333         exceptions_null.cc: Likewise.
334         * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
335         * testsuite/27_io/basic_ostream/seekp/char/
336         exceptions_badbit_throw.cc: Likewise.
337         * testsuite/27_io/basic_ostream/sentry/char/2.cc: Likewise.
338         * testsuite/27_io/basic_ostream/write/char/1.cc: Likewise.
339
340 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
341
342         * include/tr1/type_traits (aligned_storage): Use __aligned__ instead
343         of aligned.
344
345 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
346             Andreas Jaeger  <aj@suse.de>
347
348         PR libstdc++/19343
349         * include/bits/functexcept.h: Mark the helpers as 'noreturn'.
350
351 2005-01-21  Loren J. Rittle  <ljrittle@acm.org>
352
353         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Allow
354         lseek on fifo to succeed.  Thus, check for consistent report.
355
356 2005-01-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
357
358         PR libstdc++/19510
359         * include/bits/stl_list.h (_List_iterator): Initialize _M_node
360         in constructor.
361         (_List_const_iterator): Likewise.
362         * include/bits/stl_tree.h (_Rb_tree_iterator): Likewise.
363         (_Rb_tree_const_iterator): Likewise.
364
365         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
366         * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
367
368 2005-01-20  Benjamin Kosnik  <bkoz@redhat.com>
369
370         * testsuite/Makefile.am (check-compile): New.
371         * testsuite/Makefile.in: Regenerate.    
372         * scripts/check_compile_time: New.
373         * scripts/check_performance: Tweaks.
374
375 2005-01-19  Paolo Carlini  <pcarlini@suse.de>
376
377         PR libstdc++/19535
378         * include/tr1/utility (struct __pair_get<1>::__get, __const_get):
379         Fix typo in the return type.
380         * testsuite/tr1/6_containers/utility/19535.cc: New.
381
382 2005-01-19  Loren J. Rittle  <ljrittle@acm.org>
383
384         * include/ext/array_allocator.h (array_allocator<>::allocate):
385         Avoid __used.  Use __array_used instead.
386         * docs/html/17_intro/BADNAMES: Add list for FreeBSD.
387
388 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
389
390         * config/os/aix/os_defines.h (_XOPEN_SOURCE): Delete.
391         (_XOPEN_SOURCE_EXTENDED): Delete.
392
393 2005-01-18  Benjamin Kosnik  <bkoz@redhat.com>
394
395         * testsuite/testsuite_performance.h (time_counter::start):
396         Clear. Tweaks.
397         (clear_counters): Inline.
398         (start_counters): Inline.
399         (stop_counters): Inline.
400         * testsuite/performance/20_util/allocator/map_thread.cc: Return.
401         * testsuite/performance/20_util/allocator/insert.cc: Remove bogus
402         return, add return.
403         * testsuite/performance/20_util/allocator/map_thread.cc: Same.
404         
405 2005-01-17  Paolo Carlini  <pcarlini@suse.de>
406
407         PR libstdc++/19433
408         * include/bits/stl_tree.h (_Rb_tree<>::insert_unique(iterator,
409         const _Val&), _Rb_tree<>::insert_equal(iterator, const _Val&)):
410         Obtain amortized constant complexity if t is inserted right after
411         p - not before p - as per Table 69.
412         * testsuite/performance/23_containers/set_insert_from_sorted.cc: New.
413         
414         * testsuite/23_containers/multiset/insert/2.cc: New.
415         * testsuite/23_containers/set/insert/1.cc: Likewise.
416         
417         * testsuite/performance/23_containers/set_create_from_sorted.cc:
418         Simplify.
419
420         * include/bits/stl_tree.h: Add a few missing std:: qualifications.
421
422 2005-01-16  Jonathan Wakely  <redi@gcc.gnu.org>
423
424         * include/ext/rope: Qualify calls to std::copy() by sequence_buffer.
425         * testsuite/ext/rope/4.cc: Add.
426
427 2005-01-16  Lorenz Minder  <lminder@gmx.net>
428             Paolo Carlini  <pcarlini@suse.de>
429
430         PR libstdc++/19322
431         * include/c_std/std_cmath.h: Define the C99 classification facilities
432         directly inside namespace std:.
433         * testsuite/26_numerics/cmath/19322.cc: New.
434
435 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
436
437         * config/os/aix/os_defines.h (_G_USING_THUNKS): Delete.
438
439 2005-01-14  Paolo Carlini  <pcarlini@suse.de>
440
441         PR libstdc++/19422
442         * include/bits/stl_tree.h (_Rb_tree<>::insert_equal(_II, _II),
443         _Rb_tree<>::insert_unique(_II, _II)): Use insert_equal (insert_unique,
444         respectively) with hint (end()).
445         * testsuite/performance/23_containers/set_create_from_sorted.cc: New.
446
447 2005-01-13  Geoffrey Keating  <geoffk@apple.com>
448
449         * configure.host (darwin): On darwin8 or later, no need to build
450         libstdc++ with -flat_namespace.
451
452 2005-01-13  Jonathan Wakely  <redi@gcc.gnu.org>
453
454         * docs/doxygen/user.cfg.in: Set HAVE_DOT back to YES.
455
456 2005-01-13  Paolo Carlini  <pcarlini@suse.de>
457
458         * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
459         Re-enable commented-out test for double type.
460
461 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
462             Benjamin Kosnik  <bkoz@redhat.com>
463
464         * src/istream.cc (basic_istream<char>::ignore(streamsize),
465         basic_istream<char>::ignore(streamsize, int_type),
466         basic_istream<wchar_t>::ignore(streamsize),
467         basic_istream<wchar_t>::ignore(streamsize, int_type)): In case
468         more than numeric_limits<streamsize>::max() chars are skipped,
469         set _M_gcount = max().
470         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
471         int_type)): Likewise; keep simple, don't forward.
472
473 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
474
475         * src/istream.cc (basic_istream<char>::ignore(streamsize),
476         basic_istream<char>::ignore(streamsize, int_type),
477         basic_istream<wchar_t>::ignore(streamsize),
478         basic_istream<wchar_t>::ignore(streamsize, int_type)): Revert
479         2005-01-05 change: actually, the previous behavior is conforming
480         and consistent with that of get(char_type*, streamsize, char_type),
481         albeit slightly different from that of 3.3/3.4 in a corner case
482         due to the use of snextc.
483         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
484         int_type)): Likewise.
485         * testsuite/27_io/basic_istream/ignore/char/4.cc: Remove.
486         * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
487
488 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
489
490         * include/tr1/type_traits: Implement alignment_of and aligned_storage.
491         * testsuite/tr1/4_metaprogramming/other_transformations/
492         aligned_storage/aligned_storage.cc: New.
493         * testsuite/tr1/4_metaprogramming/other_transformations/
494         aligned_storage/typedefs.cc: Likewise.
495         * testsuite/tr1/4_metaprogramming/type_properties/
496         alignment_of/alignment_of.cc: Likewise.
497         * testsuite/tr1/4_metaprogramming/type_properties/
498         alignment_of/typedefs.cc: Likewise.
499
500 2005-01-10  Paolo Carlini  <pcarlini@suse.de>
501
502         * Makefile.in: Regenerate.
503         * libmath/Makefile.in: Likewise.
504         * libsupc++/Makefile.in: Likewise.
505         * po/Makefile.in: Likewise.
506         * src/Makefile.in: Likewise.
507         * testsuite/Makefile.in: Likewise.
508
509 2005-01-10  Paolo Carlini  <pcarlini@suse.de>
510
511         * include/bits/stl_algobase.h (lexicographical_compare):
512         Fix concept check.
513
514 2005-01-07  Benjamin Kosnik  <bkoz@redhat.com>
515
516         * acinclude.m4: Remove CCODECVT_H.
517         * configure: Regenerate.
518         * include/Makefile.am (host_headers_extra): Move to...
519         (ext_headers): ...here.
520         * include/Makefile.in: Regenerate.
521         * include/ext/enc_filebuf: Remove enc_filebuf, consolidate
522         enc_traits to...
523         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Move...
524         * include/ext/codecvt_specializations.h: ...here. Remove
525         _GLIBCXX_USE___ENC_TRAITS. 
526         (__enc_traits): To __encoding_state, put in __gnu_cxx namespace.
527         (enc_char_traits): To __encoding_char_traits, put in __gnu_cxx
528         namespace.
529         * config/locale/generic/codecvt_specializations.h: Remove.
530         * include/bits/codecvt.h: Remove codecvt_specializations.h include.
531         * src/codecvt.cc: Remove __enc_traits::_S_max_size.
532
533 2005-01-06  Benjamin Kosnik  <bkoz@redhat.com>
534
535         * include/bits/fstream.tcc: Remove unnecessary qualifications for
536         uglified data members of basic_filebuf, including _M_buf,
537         _M_buf_size, _M_mode, _M_pback_init.
538         * include/std/std_fstream.h: Same.
539         
540 2005-01-05  Benjamin Kosnik  <bkoz@redhat.com>
541
542         * testsuite/testsuite_hooks.h: 
543         (copy_constructor::mark_call):  Use __throw_runtime_error.
544         (assignment_operator::mark_call): Same.
545         * testsuite/testsuite_hooks.cc (verify_demangle): Same.
546         (locale_data): Remove, just use runtime_error directly.
547         (environment_variable): Same.
548         (not_found): Same.
549         (run_tests_wrapped_locale): Use __throw_runtime_error.
550         (run_tests_wrapped_env): Same.
551         (semaphore::semaphore): Same.
552         (semaphore::signal): Same.
553         (semaphore::wait): Same.
554         * testsuite/testsuite_abi.h (symbol_error): Remove, use logic_error.
555         * testsuite/testsuite_abi.cc (get_symbol): Use __throw_logic_error.
556         (create_symbols): Use __throw_runtime_error.
557         * src/bitmap_allocator.cc: Use __throw_bad_alloc.
558
559 2005-01-05  Mark Mitchell  <mark@codesourcery.com>
560
561         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Remove child
562         process.
563         
564 2005-01-05  Paolo Carlini  <pcarlini@suse.de>
565
566         * src/istream.cc (basic_istream<char>::ignore(streamsize),
567         basic_istream<char>::ignore(streamsize, int_type),
568         basic_istream<wchar_t>::ignore(streamsize),
569         basic_istream<wchar_t>::ignore(streamsize, int_type)): At the end,
570         first check _M_gcount vs __n.   
571         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
572         int_type)): Likewise.
573         * testsuite/27_io/basic_istream/ignore/char/4.cc: New.
574         * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
575
576 2005-01-03  Mark Mitchell  <mark@codesourcery.com>
577
578         * testsuite/testsuite_hooks.cc: Use __throw_exception_again
579         instead of just throw.
580
581         * testsuite/testsuite_hooks.cc: Update coypright and follow style
582         guidelines.
583         * testsuite/testsuite_hooks.h: Likewise.
584         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
585         semaphores, not sleep.
586         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
587         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
588         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
589         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
590         Likewise.
591         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
592         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
593         * testsuite/27_io/objects/char/7.cc: Likewise.
594         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
595         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
596         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
597
598         * configure.ac: Check for sys/ipc.h and sys/sem.h. 
599         * config.h.in: Regenerated.
600         * configure: Likewise.
601         * testsuite/testsuite_hooks.cc (_GLIBCXX_SYSV_SEM): Conditionally
602         define.
603         (sys/types.h): Include.
604         (sys/ipc.h): Likewise.
605         (sys/sem.h): Likewise.
606         (__gnu_test::semun): New type.
607         (__gnu_test::semaphore::sempaphore): New function.
608         (__gnu_test::semaphore::~semaphore): Likewise.
609         (__gnu_test::semaphore::wait): Likewise.
610         (__gnu_test::semaphore::signal): Likewise.
611         * testsuite/testsuite_hooks.h (__gnu_test::semaphore): New class.
612         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
613         semaphores, not sleep.
614         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
615         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
616         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
617         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
618         Likewise.
619         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
620         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
621         * testsuite/27_io/objects/char/7.cc: Likewise.
622         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
623         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
624         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
625
626 2005-01-03  Paolo Carlini  <pcarlini@suse.de>
627
628         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
629         int_type)): Reset _M_gcount to numeric_limits<streamsize>::min().
630         * src/istream.cc (basic_istream<char>::ignore(streamsize, int_type),
631         basic_istream<wchar_t>::ignore(streamsize, int_type)): Likewise.
632         * src/istream.cc (basic_istream<char>::ignore(streamsize),
633         basic_istream<wchar_t>::ignore(streamsize)): Likewise; fix a typo.
634
635 2005-01-02  Paolo Carlini  <pcarlini@suse.de>
636
637         * src/istream.cc (basic_istream<char>::ignore(streamsize),
638         basic_istream<char>::ignore(streamsize, int_type),
639         basic_istream<wchar_t>::ignore(streamsize),
640         basic_istream<wchar_t>::ignore(streamsize, int_type)): Avoid
641         _M_gcount overflows.    
642         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
643         int_type)): Likewise; use snextc in the main loop, consistently
644         with the specializations above.
645
646 2005-01-02  Chris Jefferson  <chris@bubblescope.net>
647
648         * include/bits/stl_algobase.h (mismatch): Correct concept check.
649
650 2005-01-01  Paolo Carlini  <pcarlini@suse.de>
651
652         * testsuite/ext/enc_filebuf/char/13189.cc: Fix, first include
653         testsuite_hooks.h, to know whether including ext/enc_filebuf.h.
654         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
655
656 2005-01-01  Paolo Carlini  <pcarlini@suse.de>
657
658         * testsuite/27_io/basic_istream/extractors_character/char/1.cc: Fix,
659         null-terminate array1 at the outset.
660         * testsuite/27_io/basic_istream/extractors_character/wchar_t/1.cc:
661         Likewise.