type_traits (is_polymorphic): Don't forget the virtual destructor, thus avoiding...
[gcc.git] / libstdc++-v3 / ChangeLog
1 2005-03-07 Paolo Carlini <pcarlini@suse.de>
2
3 * include/tr1/type_traits (is_polymorphic): Don't forget
4 the virtual destructor, thus avoiding warnings.
5 * testsuite/testsuite_tr1.h (class AbstractClass,
6 class PolymorphicClass): Likewise.
7
8 2005-03-07 Paolo Carlini <pcarlini@suse.de>
9
10 * include/std/std_complex.h (pow(const complex<_Tp>&,
11 const complex<_Tp>&)): Dispatch to either __complex_pow(__x.__rep(),
12 __y.__rep()) or __complex_pow(__x, __y) depending on the macro
13 _GLIBCXX_USE_C99_COMPLEX.
14
15 2005-03-07 Paolo Carlini <pcarlini@suse.de>
16
17 * include/std/std_fstream.h (basic_fstream<>::open,
18 basic_ifstream<>::open, basic_ofstream<>::open): Implement the
19 resolution of DR 409 [Ready], call clear() on success.
20 * docs/html/ext/howto.html: Add an entry for DR 409.
21 * docs/html/faq/index.html (4_4): Clarify the new behavior.
22 * testsuite/27_io/basic_ifstream/open/char/1.cc: Adjust.
23 * testsuite/27_io/basic_ofstream/open/char/1.cc: Likewise.
24
25 2005-03-05 Joseph S. Myers <joseph@codesourcery.com>
26
27 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
28 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
29 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
30 testsuite/22_locale/collate/hash/wchar_t/2.cc,
31 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
32 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
33 testsuite/22_locale/collate/transform/wchar_t/2.cc,
34 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
35 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
36 XFAIL on *-*-hpux11.23.
37
38 2005-03-04 Paolo Carlini <pcarlini@suse.de>
39
40 * include/tr1/type_traits: Add is_base_of.
41 * testsuite/tr1/4_metaprogramming/relationships_between_types/
42 is_base_of/is_base_of.cc: New.
43 * testsuite/tr1/4_metaprogramming/relationships_between_types/
44 is_base_of/typedefs.cc: Likewise.
45
46 2005-03-03 Benjamin Kosnik <bkoz@redhat.com>
47
48 * include/tr1/functional: Convert relative path.
49
50 * docs/doxygen/user.cfg.in: Add tr1 includes.
51
52 2005-03-03 Paolo Carlini <pcarlini@suse.de>
53
54 * include/tr1/type_traits: Implemenet is_polymorphic.
55 (is_empty): Minor tweaks.
56 * testsuite/testsuite_tr1.h: Add test types.
57 * testsuite/tr1/4_metaprogramming/type_properties/
58 is_polymorphic/is_polymorphic.cc: New.
59 * testsuite/tr1/4_metaprogramming/type_properties/
60 is_polymorphic/typedefs.cc: Likewise.
61 * testsuite/tr1/4_metaprogramming/composite_type_traits/
62 is_union_or_class/is_union_or_class.cc: Add tests.
63
64 2005-03-02 Douglas Gregor <doug.gregor@gmail.com>
65
66 * include/tr1/functional (_Has_result_type): Cleanup.
67 (_Result_of_impl): Handle member data pointers correctly.
68 (reference_wrapper): Support invocation.
69 Move repetition code into new file include/tr1/repeat.h.
70 * include/tr1/functional_iterate.h (reference_wrapper): Support
71 invocation. Cleanup long lines.
72 * include/tr1/ref_wrap_iterate.h (reference_wrapper): Declare
73 invocation operators.
74 * include/tr1/repeat.h: Code repetition header.
75 * include/Makefile.am: Add ref_wrap_iterate.h, repeat.h.
76 * include/Makefile.in: Add ref_wrap_iterate.h, repeat.h.
77 * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
78 New test of reference_wrapper invocation.
79 * testsuite/tr1/3_function_objects/reference_wrapper/typedefs.cc:
80 New test of reference_wrapper typedefs and base classes.
81 * testsuite/tr1/3_function_objects/result_of.cc: Trivial cleanup
82 (e-mail address).
83
84 2005-03-02 Douglas Gregor <doug.gregor@gmail.com>
85
86 * include/tr1/function (result_of): New class template.
87 * include/tr1/functional/iterator.h: Implementation of TR1
88 result_of.
89 * testsuite/tr1/3_function_objects/result_of.cc: New test
90
91 2005-03-01 Vladimir Merzliakov <wanderer@rsu.ru>
92
93 * testsuite/26_numerics/cmath/c99_classification_macros_c.cc: Tweak.
94
95 2005-02-28 Benjamin Kosnik <bkoz@redhat.com>
96
97 * testsuite/tr1/2_general_utilities/memory/shared_ptr/
98 cons/auto_ptr_neg.cc: Correct line numbers.
99
100 * testsuite/testsuite_abi.cc: Add CXXABI_1.3.1.
101
102 2005-02-28 Jonathan Wakely <redi@gcc.gnu.org>
103
104 * include/tr1/memory: Replace checked_deleter with (unchecked)
105 _Sp_deleter as GCC warns about delete on incomplete types anyway.
106
107 2005-02-28 Jonathan Wakely <redi@gcc.gnu.org>
108
109 * include/tr1/memory: Add missing "inline" to __throw_bad_weak_ptr.
110
111 2005-02-28 Hans-Peter Nilsson <hp@axis.com>
112
113 PR target/19065
114 * config/cpu/cris/atomicity.h (__exchange_and_add): In asm, use
115 'Q' constraint, not 'm'.
116
117 2005-02-26 Earl Chew <earl_chew@agilent.com>
118 Christopher Jefferson <chris@bubblescope.net>
119
120 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert): Don't leak
121 memory if _M_key_compare throws.
122
123 2005-02-25 Paolo Carlini <pcarlini@suse.de>
124
125 * include/tr1/type_traits: Add the trivial is_union and is_class;
126 add the __is_union_or_class extension.
127 (is_enum, is_empty): Use the latter.
128 * include/tr1/type_traits_fwd.h: Add __is_union_or_class.
129 * testsuite/testsuite_tr1.h: Add UnionType; trivial formatting
130 fixes.
131 * testsuite/tr1/4_metaprogramming/composite_type_traits/
132 is_union_or_class/is_union_or_class.cc: New.
133 * testsuite/tr1/4_metaprogramming/composite_type_traits/
134 is_union_or_class/typedefs.cc: Likewise.
135
136 2005-02-24 Benjamin Kosnik <bkoz@redhat.com>
137
138 * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Guard
139 wchar_t use with _GLIBCXX_USE_WCHAR_T.
140
141 2005-02-24 Benjamin Kosnik <bkoz@redhat.com>
142
143 * include/std/std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to
144 _GLIBCXX_USE_C99_COMPLEX.
145 * acinclude.m4: Same.
146 * acconfig.h: Same.
147 * configure: Regenerate.
148 * config.h.in: Same.
149
150 2005-02-24 Paolo Carlini <pcarlini@suse.de>
151
152 * include/tr1/functional (mem_fn): Avoid _T, badname on
153 Darwin.
154
155 2005-02-23 Douglas Gregor <doug.gregor@gmail.com>
156
157 * include/tr1/functional (function): New class template.
158 (mem_fn): New function template.
159 Implementations of TR1 function and mem_fn facilities.
160 * include/tr1/functional_iterate.h: Implementations of TR1
161 function and mem_fn facilities.
162 * testsuite/tr1/3_function_objects/function/1.cc: New
163 test of std::tr1::function.
164 * testsuite/tr1/3_function_objects/function/2.cc: New
165 test of std::tr1::function.
166 * testsuite/tr1/3_function_objects/function/3.cc: New
167 test of std::tr1::function.
168 * testsuite/tr1/3_function_objects/function/4.cc: New
169 test of std::tr1::function.
170 * testsuite/tr1/3_function_objects/function/5.cc: New
171 test of std::tr1::function.
172 * testsuite/tr1/3_function_objects/function/6.cc: New
173 test of std::tr1::function.
174 * testsuite/tr1/3_function_objects/function/7.cc: New
175 test of std::tr1::function.
176 * testsuite/tr1/3_function_objects/function/8.cc: New
177 test of std::tr1::function.
178 * testsuite/tr1/3_function_objects/function/9.cc: New
179 test of std::tr1::function.
180 * testsuite/tr1/3_function_objects/mem_fn.cc: New test of
181 std::tr1::mem_fn.
182
183 2005-02-23 Paolo Carlini <pcarlini@suse.de>
184
185 * include/tr1/type_traits: Implement is_convertible.
186 * testsuite/tr1/4_metaprogramming/relationships_between_types/
187 is_convertible/is_convertible.cc: New.
188 * testsuite/tr1/4_metaprogramming/relationships_between_types/
189 is_convertible/typedefs.cc: Likewise.
190 * testsuite/testsuite_tr1.h: Add class DerivedType.
191
192 * include/tr1/type_traits (is_function): Don't mistake references
193 to function types for function types.
194 * testsuite/tr1/4_metaprogramming/primary_type_categories/
195 is_function/is_function.cc: Add testcase.
196
197 2005-02-22 Benjamin Kosnik <bkoz@redhat.com>
198
199 * scripts/check_performance: Tweaks.
200
201 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/2.cc: Name
202 output file with extension that clean rules can find.
203
204 2005-02-22 Richard Henderson <rth@redhat.com>
205
206 PR libstdc++/20091
207 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't special case
208 decrement of uncaughtExceptions for rethrow.
209
210 2005-02-22 Paolo Carlini <pcarlini@suse.de>
211
212 * include/tr1/functional: Fix License to GPL with exception.
213 * include/tr1/hashtable: Likewise.
214 * include/tr1/tuple: Likewise.
215 * include/tr1/type_traits: Likewise.
216 * include/tr1/type_traits_fwd.h: Likewise.
217 * include/tr1/unordered_map: Likewise.
218 * include/tr1/unordered_set: Likewise.
219 * include/tr1/utility: Likewise.
220
221 2005-02-22 Paolo Carlini <pcarlini@suse.de>
222
223 * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
224 auto_ptr_neg.cc: Add missing dg-do compile directive.
225 * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
226 auto_ptr_rvalue_neg.cc: Likewise.
227 * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
228 shared_ptr_neg.cc: Likewise.
229 * testsuite/tr1/2_general_utilities/memory/shared_ptr/cons/
230 auto_ptr_neg.cc: Likewise.
231 * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
232 reset_neg.cc: Likewise.
233 * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
234 swap_neg.cc: Likewise.
235
236 2005-02-22 Jonathan Wakely <redi@gcc.gnu.org>
237
238 * include/Makefile.am, include/Makefile.in: Fix accidental extra
239 change from previous commit.
240
241 2005-02-21 Jonathan Wakely <redi@gcc.gnu.org>
242
243 * include/tr1/memory: New file.
244 * include/Makefile.am, include/Makefile.in: Add new TR1 header.
245 * testsuite/tr1/2_general_utilities/memory/
246 enable_shared_from_this/not_shared.cc: New test.
247 * testsuite/tr1/2_general_utilities/memory/
248 enable_shared_from_this/not_shared2.cc: New test.
249 * testsuite/tr1/2_general_utilities/memory/
250 enable_shared_from_this/not_shared3.cc: New test.
251 * testsuite/tr1/2_general_utilities/memory/
252 enable_shared_from_this/shared.cc: New test.
253 * testsuite/tr1/2_general_utilities/memory/
254 enable_shared_from_this/still_shared.cc: New test.
255 * testsuite/tr1/2_general_utilities/memory/
256 shared_ptr/assign/assign.cc: New test.
257 * testsuite/tr1/2_general_utilities/memory/
258 shared_ptr/assign/auto_ptr.cc: New test.
259 * testsuite/tr1/2_general_utilities/memory/
260 shared_ptr/assign/auto_ptr_neg.cc: New test.
261 * testsuite/tr1/2_general_utilities/memory/
262 shared_ptr/assign/auto_ptr_rvalue_neg.cc: New test.
263 * testsuite/tr1/2_general_utilities/memory/
264 shared_ptr/assign/shared_ptr.cc: New test.
265 * testsuite/tr1/2_general_utilities/memory/
266 shared_ptr/assign/shared_ptr_neg.cc: New test.
267 * testsuite/tr1/2_general_utilities/memory/
268 shared_ptr/comparison/cmp.cc: New test.
269 * testsuite/tr1/2_general_utilities/memory/
270 shared_ptr/cons/auto_ptr.cc: New test.
271 * testsuite/tr1/2_general_utilities/memory/
272 shared_ptr/cons/auto_ptr_neg.cc: New test.
273 * testsuite/tr1/2_general_utilities/memory/
274 shared_ptr/cons/copy.cc: New test.
275 * testsuite/tr1/2_general_utilities/memory/
276 shared_ptr/cons/default.cc: New test.
277 * testsuite/tr1/2_general_utilities/memory/
278 shared_ptr/cons/pointer.cc: New test.
279 * testsuite/tr1/2_general_utilities/memory/
280 shared_ptr/cons/weak_ptr.cc: New test.
281 * testsuite/tr1/2_general_utilities/memory/
282 shared_ptr/cons/weak_ptr_expired.cc: New test.
283 * testsuite/tr1/2_general_utilities/memory/
284 shared_ptr/dest/dest.cc: New test.
285 * testsuite/tr1/2_general_utilities/memory/
286 shared_ptr/misc/io.cc: New test.
287 * testsuite/tr1/2_general_utilities/memory/
288 shared_ptr/misc/swap.cc: New test.
289 * testsuite/tr1/2_general_utilities/memory/
290 shared_ptr/modifiers/reset.cc: New test.
291 * testsuite/tr1/2_general_utilities/memory/
292 shared_ptr/modifiers/reset_neg.cc: New test.
293 * testsuite/tr1/2_general_utilities/memory/
294 shared_ptr/modifiers/swap.cc: New test.
295 * testsuite/tr1/2_general_utilities/memory/
296 shared_ptr/modifiers/swap_neg.cc: New test.
297 * testsuite/tr1/2_general_utilities/memory/
298 shared_ptr/observers/bool_conv.cc: New test.
299 * testsuite/tr1/2_general_utilities/memory/
300 shared_ptr/observers/get.cc: New test.
301 * testsuite/tr1/2_general_utilities/memory/
302 shared_ptr/observers/unique.cc: New test.
303 * testsuite/tr1/2_general_utilities/memory/
304 shared_ptr/observers/use_count.cc: New test.
305
306 2005-02-21 Paolo Carlini <pcarlini@suse.de>
307
308 * include/tr1/type_traits (is_member_function_pointer):
309 Remove ugly workaround for c++/19076.
310
311 2005-02-21 Paolo Carlini <pcarlini@suse.de>
312
313 * include/bits/basic_string.tcc (_Rep::_M_destroy): Don't
314 check for this == &_S_empty_rep, it's always false, here.
315
316 2005-02-19 Matt Austern <austern@gmail.com>
317
318 * include/tr1/functional (tr1_hashtable_define_trivial_hash): Make
319 hash<T>::operator() a const member function for T a fundamental type
320 * include/tr1/hashtable (extract1st::operator()): Declare const.
321 (hash_code_base): Declare all member functions const
322 (hashtable::find): fix call to this->bucket_count()
323 (hashtable::count): Likewise.
324 (hashtable::equal_range): m_incr_bucket applies to iterator, not node.
325 * testsuite/tr1/6_containers/unordered/find/set1.cc: New test.
326 * testsuite/tr1/6_containers/unordered/find/map1.cc: New test.
327 * testsuite/tr1/6_containers/unordered/find/multimap1.cc: New test.
328 * testsuite/tr1/6_containers/unordered/find/multiset1.cc: New test.
329
330 2005-02-19 Hans-Peter Nilsson <hp@axis.com>
331
332 PR libstdc++/20071
333 * include/tr1/functional (hash<std::wstring>): Wrap in #ifdef
334 _GLIBCXX_USE_WCHAR_T.
335
336 2005-02-18 Richard Henderson <rth@redhat.com>
337
338 PR libstdc++/10606
339 * config/linker-map.gnu (CXXABI_1.3.1): Add __cxa_get_exception_ptr.
340 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Increment
341 uncaughtExceptions here instead of ...
342 * libsupc++/eh_throw.cc (__cxa_throw) ... here.
343 (__cxa_rethrow): Increment uncaughtExceptions here instead of ...
344 * libsupc++/eh_catch.cc (__cxa_end_catch): ... here.
345 (__cxa_get_exception_ptr): New.
346 * libsupc++/unwind-cxx.h (__cxa_get_exception_ptr): Declare.
347
348 2005-02-18 Matt Austern <austern@apple.com>
349
350 * testsuite/tr1/6_containers/unordered/insert/array_syntax.cc: Fix
351 test case to use assignment instead of ==
352 * testsuite/tr1/6_containers/unordered/insert/map_range.cc: New test.
353 * testsuite/tr1/6_containers/unordered/insert/multimap_range.cc: New test.
354 * testsuite/tr1/6_containers/unordered/insert/multiset_range.cc: New test.
355 * testsuite/tr1/6_containers/unordered/insert/set_range.cc: New test.
356
357 2005-02-18 Eric Botcazou <ebotcazou@libertysurf.fr>
358
359 * testsuite/thread/pthread1.cc: Do not invoke pthread_setconcurrency
360 on Solaris 2.6 and below.
361 * testsuite/thread/pthread2.cc: Likewise.
362 * testsuite/thread/pthread3.cc: Likewise.
363 * testsuite/thread/pthread4.cc: Likewise.
364 * testsuite/thread/pthread5.cc: Likewise.
365 * testsuite/thread/pthread6.cc: Likewise.
366 * testsuite/thread/pthread7-rope.cc: Likewise.
367
368 2005-02-17 Matt Austern <austern@apple.com>
369
370 * include/tr1/functional (hash): New function object.
371 * include/tr1/hashtable: New file.
372 * include/tr1/unordered_set: New file.
373 * include/tr1/unordered_map: New file.
374 * include/Makefile.am: Add three new TR1 headers.
375 * include/Makefile.in: Likewise.
376 * testsuite/tr1/6_containers/unordered/insert/array_syntax.cc: New test.
377 * testsuite/tr1/6_containers/unordered/insert/map_single.cc: New test.
378 * testsuite/tr1/6_containers/unordered/insert/multimap_single.cc: New test.
379 * testsuite/tr1/6_containers/unordered/insert/multiset_single.cc: New test.
380 * testsuite/tr1/6_containers/unordered/insert/set_single.cc: New test.
381 * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: New test.
382 * testsuite/tr1/6_containers/unordered/instantiate/map.cc: New test.
383 * testsuite/tr1/6_containers/unordered/instantiate/multimap.cc: New test.
384 * testsuite/tr1/6_containers/unordered/instantiate/multiset.cc: New test.
385 * testsuite/tr1/6_containers/unordered/instantiate/set.cc: New test.
386
387 2005-02-16 Paolo Carlini <pcarlini@suse.de>
388
389 * testsuite/23_containers/set/modifiers/16728.cc:
390 Remove redundant include <testsuite_performance.h>.
391
392 2005-02-16 Paolo Carlini <pcarlini@suse.de>
393
394 PR libstdc++/19829
395 * testsuite/21_strings/basic_string/find/char/3.cc: Fix the test
396 at line #66 to not access str_lit01 beyond its end.
397 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Likewise.
398
399 2005-02-15 Paolo Carlini <pcarlini@suse.de>
400 Jon Grimm <jgrimm2@us.ibm.com>
401
402 PR libstdc++/19955
403 * include/bits/locale_facets.h (ctype<char>::_M_narrow_init()):
404 Fix the logic setting _M_narrow_ok: first check whether the
405 transformation is trivial with a dflt == 0, then deal with the
406 special case of zero.
407 * testsuite/22_locale/ctype/narrow/char/19955.cc: New.
408
409 * include/bits/locale_facets.h (ctype<char>::_M_widen_init()):
410 Tweak consistently to use memcmp; minor formatting fixes.
411
412 2005-02-15 Jakub Jelinek <jakub@redhat.com>
413
414 PR libstdc++/19946
415 * testsuite/demangle/abi_examples/01.cc (main): Adjust for 2005-02-13
416 demangler change.
417 * testsuite/demangle/abi_examples/02.cc (main): Likewise.
418
419 2005-02-13 Richard Guenther <rguenth@gcc.gnu.org>
420 Paolo Carlini <pcarlini@suse.de>
421
422 PR libstdc++/11706
423 * include/c_std/std_cmath.h (pow): Use __builtin_powi[lf]
424 for integer overloads.
425
426 * testsuite/26_numerics/cmath/powi.cc: New.
427
428 2005-02-11 Janis Johnson <janis187@us.ibm.com>
429
430 * testsuite/26_numerics/complex/13450.cc: Fix XFAIL selector.
431 * testsuite/26_numerics/complex/complex_value.cc: Ditto.
432 * testsuite/26_numerics/complex/pow.cc: Ditto.
433
434 * testsuite/lib/libstdc++.exp: Load target-supports-dg.exp.
435 * testsuite/26_numerics/complex/13450.cc: XFAIL for broken_cplxf_arg.
436 * testsuite/26_numerics/complex/complex_value.cc: Ditto.
437 * testsuite/26_numerics/complex/pow.cc: Ditto.
438
439 2005-02-09 Mike Stump <mrs@apple.com>
440
441 * libsupc++/del_op.cc: Don't include cstdlib when !_GLIBCXX_HOSTED.
442
443 2005-02-09 Janis Johnson <janis187@us.ibm.com>
444
445 * testsuite/ext/array_allocator/2.cc: XFAIL for powerpc*-*-linux*.
446
447 2005-02-08 Mark Mitchell <mark@codesourcery.com>
448
449 * config/linker-map.gnu (GLIBCXX_3.4): Add _ZNSdC* and _ZNSdD*.
450
451 2005-02-07 Loren J. Rittle <ljrittle@acm.org>
452
453 * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Make buf static.
454 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Make ref and
455 src static.
456
457 2005-02-02 Brad Spencer <spencer@infointeractive.com>
458
459 * debug.html: Fix broken tags.
460 * documentation.html: Same.
461
462 2005-02-02 Andreas Jaeger <aj@suse.de>
463
464 * testsuite/lib/libstdc++.exp: Revert Geoffrey Keating's patch
465 from 2005-01-28.
466 * testsuite/Makefile.am: Likewise.
467 * testsuite/Makefile.in: Likewise.
468
469 2005-02-01 Paolo Carlini <pcarlini@suse.de>
470
471 * include/bits/cpp_type_traits.h: Rename _M_type fields to
472 __value, except for __enable_if, _M_type -> __type, consistently
473 with the other traits.
474 * include/bits/stl_algobase.h: Tweak consistently.
475 * include/bits/stl_tree.h: Likewise.
476 * include/bits/valarray_array.h: Likewise.
477 * include/c_std/std_cmath.h: Likewise.
478 * include/debug/safe_iterator.h: Likewise.
479 * include/std/std_complex.h: Likewise.
480
481 2005-01-31 Brad Spencer <spencer@infointeractive.com>
482
483 * crossconfig.m4: Repair Solaris cross bits for strtold and strtof.
484 * configure: Regenerated.
485
486 2005-01-31 Mark Mitchell <mark@codesourcery.com>
487
488 * include/std/std_limits.h (numeric_limits<float>::has_denorm):
489 Add required cast.
490 (numeric_limits<double>::has_denorm): Likewise.
491 (numeric_limits<long double>::has_denorm): Likewise.
492
493 2005-01-31 Paolo Carlini <pcarlini@suse.de>
494 Gabriel Dos Reis <gdr@integrable-solutions.net>
495
496 * include/bits/cpp_type_traits.h: Add types to the structs thus
497 making type_traits.h redundant; exploit new __truth_type and
498 __traitor helpers.
499 * include/bits/type_traits.h: Remove.
500 * include/Makefile.am: Update.
501 * include/Makefile.in: Regenerate.
502 * include/backward/tempbuf.h: Include cpp_type_traits.h instead.
503 * include/bits/basic_string.h (replace(iterator, iterator,
504 _InputIterator, _InputIterator), _S_construct(_InIterator,
505 _InIterator, const _Alloc&)): Use __is_integer instead.
506 * include/bits/stl_bvector.h (vector(_InputIterator,
507 _InputIterator, const allocator_type&), assign(_InputIterator,
508 _InputIterator), insert(iterator, _InputIterator, _InputIterator)):
509 Likewise.
510 * include/bits/stl_construct.h (_Destroy(_ForwardIterator,
511 _ForwardIterator)): Use __is_scalar.
512 * include/bits/stl_deque.h (deque(_InputIterator, _InputIterator,
513 const allocator_type&), assign(_InputIterator, _InputIterator),
514 insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
515 * include/bits/stl_list.h (assign(_InputIterator, _InputIterator),
516 insert(iterator, _InputIterator, _InputIterator)): Likewise.
517 * include/bits/stl_tempbuf.h (_Temporary_buffer(_ForwardIterator,
518 _ForwardIterator)): Use __is_scalar.
519 * include/bits/stl_uninitialized.h (uninitialized_copy(_InputIterator,
520 _InputIterator, _ForwardIterator), uninitialized_fill(_ForwardIterator,
521 _ForwardIterator, const _Tp&), uninitialized_fill_n(_ForwardIterator,
522 _Size, const _Tp&)): Likewise.
523 * include/bits/stl_vector.h (vector(_InputIterator, _InputIterator,
524 const allocator_type&), assign(_InputIterator, _InputIterator),
525 insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
526 * include/debug/debug.h (__valid_range(const _InputIterator&,
527 const _InputIterator&)): Use __is_integer.
528 * include/ext/slist (assign(_InputIterator, _InputIterator)): Likewise.
529 * include/std/std_string.h: Include cpp_type_traits.h instead.
530
531 2005-01-30 Paolo Carlini <pcarlini@suse.de>
532
533 PR libstdc++/19642
534 * config/locale/generic/c_locale.h (__convert_from_v): Switch only
535 LC_NUMERIC, and only when actually != "C".
536
537 2005-01-28 Paolo Carlini <pcarlini@suse.de>
538
539 * include/tr1/type_traits (is_function): Minor consistency tweaks.
540
541 2005-01-28 Geoffrey Keating <geoffk@apple.com>
542
543 * testsuite/lib/libstdc++.exp (libstdc++_init): Search the path
544 for the compiler. Don't set cxxflags.
545 (v3_target_compile): Search for libv3test.a relative to $objdir.
546 (lsearch_all_inline): New.
547 (lsearch_all_inline_not): New.
548 (v3-list-tests): Rewrite to not need generated files.
549 * testsuite/Makefile.am (IGNORE_WCHAR_T): New.
550 (IGNORE_THREAD): New.
551 (TESTS_TO_IGNORE): New.
552 (site.exp): Set tests_to_ignore, cxxflags.
553 * aclocal.m4: Regenerate.
554 * Makefile.in: Regenerate.
555 * libmath/Makefile.in: Likewise.
556 * libsupc++/Makefile.in: Likewise.
557 * po/Makefile.in: Likewise.
558 * src/Makefile.in: Likewise.
559 * testsuite/Makefile.in: Likewise.
560
561 2005-01-28 Paolo Carlini <pcarlini@suse.de>
562
563 * include/tr1/type_traits: Implement is_empty.
564 * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
565 is_empty.cc: New.
566 * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
567 typedefs.cc: Likewise.
568
569 * include/tr1/type_traits (__is_abstract_helper): Simplify a bit.
570
571 2005-01-28 Paolo Carlini <pcarlini@suse.de>
572
573 * include/tr1/type_traits: Implement is_abstract, by exploiting the
574 resolution of DR core/337.
575 * testsuite/testsuite_tr1.h: Add AbstractClass.
576 * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
577 is_abstract.cc: New.
578 * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
579 typedefs.cc: Likewise.
580
581 * include/tr1/type_traits (is_function): Rewrite, use the conversion
582 F& -> F* instead, thus avoiding problems with abstract classes.
583 * testsuite/tr1/4_metaprogramming/primary_type_categories/
584 is_function/is_function.cc: Add a test for tricky AbstractClass.
585
586 2005-01-26 Paolo Carlini <pcarlini@suse.de>
587
588 * include/ext/mt_allocator.h
589 (struct __per_type_pool_policy<,, false>::_S_get_pool,
590 struct __per_type_pool_policy<,, true>::_S_get_pool): Scale
591 _M_chunk_size too with sizeof(_Tp), otherwise the allocator
592 breaks down as soon as sizeof(_Tp) >~ _S_chunk_size / 128;
593 reduce to 64 the multiplier for _M_max_bytes (safer wrt
594 _Binmap_type being a short); trivial reformattings.
595 * testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: New.
596
597 2005-01-26 Paolo Carlini <pcarlini@suse.de>
598
599 * acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex
600 to the final test for enable_c99, thus robustifying it; remove
601 duplicate final test on ac_99_math.
602 * configure: Regenerate.
603
604 * include/std/std_complex.h: Remove usages of the dead
605 _GLIBCXX_BUGGY_COMPLEX macro.
606
607 * testsuite/26_numerics/cmath/19322.cc: Protect with
608 _GLIBCXX_USE_C99_MATH instead of the stronger _GLIBCXX_USE_C99,
609 since only C99 math facilities are involved.
610 * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
611 Likewise.
612
613 2005-01-25 Loren J. Rittle <ljrittle@acm.org>
614
615 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Map FreeBSD to darwin
616 instead of generic. Change autoconf report to "darwin or freebsd".
617 * configure: Regenerate.
618 * config/os/bsd/freebsd/ctype_inline.h (ctype<wchar_t>::do_is): Add.
619 (ctype<wchar_t>::do_scan_is): Likewise.
620 (ctype<wchar_t>::do_scan_not): Likewise.
621
622 2005-01-25 Benjamin Kosnik <bkoz@redhat.com>
623
624 * acinclude.m4 (GLIBCXX_ENABLE_C99): Test for complex math
625 functions, and enable _GLIBCXX_USE_C99_COMPLEX_MATH if they exist.
626 * acconfig.h: Add _GLIBCXX_USE_C99_COMPLEX_MATH.
627 * config.h.in: Regenerate.
628 * configure: Regenerate.
629 * include/std/std_complex.h: Protect complex builtins with
630 _GLIBCXX_USE_C99_COMPLEX_MATH.
631
632 2005-01-24 Paolo Carlini <pcarlini@suse.de>
633
634 * include/tr1/type_traits: Implement is_signed and is_unsigned.
635 * testsuite/tr1/4_metaprogramming/type_properties/
636 is_signed/is_signed.cc: New.
637 * testsuite/tr1/4_metaprogramming/type_properties/
638 is_signed/typedefs.cc: Likewise.
639 * testsuite/tr1/4_metaprogramming/type_properties/
640 is_unsigned/is_unsigned.cc: Likewise.
641 * testsuite/tr1/4_metaprogramming/type_properties/
642 is_unsigned/typedefs.cc: Likewise.
643
644 2005-01-23 Paolo Carlini <pcarlini@suse.de>
645
646 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 34.
647
648 2005-01-23 Paolo Carlini <pcarlini@suse.de>
649
650 * testsuite/27_io/basic_ostream/cons/wchar_t/9827.cc: New.
651 * testsuite/27_io/basic_ostream/endl/wchar_t/1.cc: Likewise.
652 * testsuite/27_io/basic_ostream/ends/wchar_t/1.cc: Likewise.
653 * testsuite/27_io/basic_ostream/ends/wchar_t/2.cc: Likewise.
654 * testsuite/27_io/basic_ostream/exceptions/wchar_t/9561.cc: Likewise.
655 * testsuite/27_io/basic_ostream/flush/wchar_t/1.cc: Likewise.
656 * testsuite/27_io/basic_ostream/flush/wchar_t/2.cc: Likewise.
657 * testsuite/27_io/basic_ostream/flush/wchar_t/
658 exceptions_badbit_throw.cc: Likewise.
659 * testsuite/27_io/basic_ostream/inserters_arithmetic/
660 wchar_t/2.cc: Likewise.
661 * testsuite/27_io/basic_ostream/inserters_arithmetic/
662 wchar_t/3.cc: Likewise.
663 * testsuite/27_io/basic_ostream/inserters_arithmetic/
664 wchar_t/4.cc: Likewise.
665 * testsuite/27_io/basic_ostream/inserters_arithmetic/
666 wchar_t/4402.cc: Likewise.
667 * testsuite/27_io/basic_ostream/inserters_arithmetic/
668 wchar_t/5.cc: Likewise.
669 * testsuite/27_io/basic_ostream/inserters_arithmetic/
670 wchar_t/6.cc: Likewise.
671 * testsuite/27_io/basic_ostream/inserters_arithmetic/
672 wchar_t/9555-oa.cc: Likewise.
673 * testsuite/27_io/basic_ostream/inserters_arithmetic/
674 wchar_t/exceptions_badbit_throw.cc: Likewise.
675 * testsuite/27_io/basic_ostream/inserters_arithmetic/
676 wchar_t/exceptions_failbit_throw.cc: Likewise.
677 * testsuite/27_io/basic_ostream/inserters_character/
678 wchar_t/1.cc: Likewise.
679 * testsuite/27_io/basic_ostream/inserters_character/
680 wchar_t/2.cc: Likewise.
681 * testsuite/27_io/basic_ostream/inserters_character/
682 wchar_t/3.cc: Likewise.
683 * testsuite/27_io/basic_ostream/inserters_character/
684 wchar_t/4.cc: Likewise.
685 * testsuite/27_io/basic_ostream/inserters_character/
686 wchar_t/5.cc: Likewise.
687 * testsuite/27_io/basic_ostream/inserters_character/
688 wchar_t/6.cc: Likewise.
689 * testsuite/27_io/basic_ostream/inserters_character/
690 wchar_t/9555-oc.cc: Likewise.
691 * testsuite/27_io/basic_ostream/inserters_other/
692 wchar_t/1.cc: Likewise.
693 * testsuite/27_io/basic_ostream/inserters_other/
694 wchar_t/2.cc: Likewise.
695 * testsuite/27_io/basic_ostream/inserters_other/
696 wchar_t/3.cc: Likewise.
697 * testsuite/27_io/basic_ostream/inserters_other/
698 wchar_t/4.cc: Likewise.
699 * testsuite/27_io/basic_ostream/inserters_other/
700 wchar_t/5.cc: Likewise.
701 * testsuite/27_io/basic_ostream/inserters_other/
702 wchar_t/9318-out.cc: Likewise.
703 * testsuite/27_io/basic_ostream/inserters_other/
704 wchar_t/9424-out.cc: Likewise.
705 * testsuite/27_io/basic_ostream/inserters_other/
706 wchar_t/9555-oo.cc: Likewise.
707 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
708 error_failbit.cc: Likewise.
709 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
710 exceptions_badbit_throw.cc: Likewise.
711 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
712 exceptions_failbit_throw.cc: Likewise.
713 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
714 exceptions_null.cc: Likewise.
715 * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
716 * testsuite/27_io/basic_ostream/put/wchar_t/1.cc: Likewise.
717 * testsuite/27_io/basic_ostream/seekp/char/
718 exceptions_badbit_throw.cc: Likewise.
719 * testsuite/27_io/basic_ostream/seekp/wchar_t/
720 2346-fstream.cc: Likewise.
721 * testsuite/27_io/basic_ostream/seekp/wchar_t/
722 2346-sstream.cc: Likewise.
723 * testsuite/27_io/basic_ostream/seekp/wchar_t/
724 exceptions_badbit_throw.cc: Likewise.
725 * testsuite/27_io/basic_ostream/sentry/wchar_t/1.cc: Likewise.
726 * testsuite/27_io/basic_ostream/sentry/wchar_t/2.cc: Likewise.
727 * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
728 * testsuite/27_io/basic_ostream/tellp/wchar_t/2.cc: Likewise.
729 * testsuite/27_io/basic_ostream/tellp/wchar_t/
730 exceptions_badbit_throw.cc: Likewise.
731 * testsuite/27_io/basic_ostream/write/wchar_t/1.cc: Likewise.
732
733 * testsuite/data/wostream_inserter_char-1.tst: Likewise.
734 * testsuite/data/wostream_inserter_char-1.txt: Likewise.
735 * testsuite/data/wostream_inserter_other-1.tst: Likewise.
736 * testsuite/data/wostream_inserter_other-2.tst: Likewise.
737 * testsuite/data/wostream_seeks-1.tst: Likewise.
738
739 * testsuite/27_io/basic_ostream/endl/char/1.cc: Minor tweaks.
740 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise.
741 * testsuite/27_io/basic_ostream/exceptions/char/9561.cc: Likewise.
742 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
743 * testsuite/27_io/basic_ostream/flush/char/2.cc: Likewise.
744 * testsuite/27_io/basic_ostream/flush/char/
745 exceptions_badbit_throw.cc: Likewise.
746 * testsuite/27_io/basic_ostream/inserters_arithmetic/
747 char/2.cc: Likewise.
748 * testsuite/27_io/basic_ostream/inserters_arithmetic/
749 char/3.cc: Likewise.
750 * testsuite/27_io/basic_ostream/inserters_arithmetic/
751 char/4.cc: Likewise.
752 * testsuite/27_io/basic_ostream/inserters_arithmetic/
753 char/4402.cc: Likewise.
754 * testsuite/27_io/basic_ostream/inserters_arithmetic/
755 char/5.cc: Likewise.
756 * testsuite/27_io/basic_ostream/inserters_arithmetic/
757 char/6.cc: Likewise.
758 * testsuite/27_io/basic_ostream/inserters_character/
759 char/4.cc: Likewise.
760 * testsuite/27_io/basic_ostream/inserters_other/char/
761 2.cc: Likewise.
762 * testsuite/27_io/basic_ostream/inserters_other/char/
763 5.cc: Likewise.
764 * testsuite/27_io/basic_ostream/inserters_other/char/
765 error_failbit.cc: Likewise.
766 * testsuite/27_io/basic_ostream/inserters_other/char/
767 exceptions_badbit_throw.cc: Likewise.
768 * testsuite/27_io/basic_ostream/inserters_other/char/
769 exceptions_failbit_throw.cc: Likewise.
770 * testsuite/27_io/basic_ostream/inserters_other/char/
771 exceptions_null.cc: Likewise.
772 * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
773 * testsuite/27_io/basic_ostream/seekp/char/
774 exceptions_badbit_throw.cc: Likewise.
775 * testsuite/27_io/basic_ostream/sentry/char/2.cc: Likewise.
776 * testsuite/27_io/basic_ostream/write/char/1.cc: Likewise.
777
778 2005-01-23 Paolo Carlini <pcarlini@suse.de>
779
780 * include/tr1/type_traits (aligned_storage): Use __aligned__ instead
781 of aligned.
782
783 2005-01-23 Paolo Carlini <pcarlini@suse.de>
784 Andreas Jaeger <aj@suse.de>
785
786 PR libstdc++/19343
787 * include/bits/functexcept.h: Mark the helpers as 'noreturn'.
788
789 2005-01-21 Loren J. Rittle <ljrittle@acm.org>
790
791 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Allow
792 lseek on fifo to succeed. Thus, check for consistent report.
793
794 2005-01-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
795
796 PR libstdc++/19510
797 * include/bits/stl_list.h (_List_iterator): Initialize _M_node
798 in constructor.
799 (_List_const_iterator): Likewise.
800 * include/bits/stl_tree.h (_Rb_tree_iterator): Likewise.
801 (_Rb_tree_const_iterator): Likewise.
802
803 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
804 * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
805
806 2005-01-20 Benjamin Kosnik <bkoz@redhat.com>
807
808 * testsuite/Makefile.am (check-compile): New.
809 * testsuite/Makefile.in: Regenerate.
810 * scripts/check_compile_time: New.
811 * scripts/check_performance: Tweaks.
812
813 2005-01-19 Paolo Carlini <pcarlini@suse.de>
814
815 PR libstdc++/19535
816 * include/tr1/utility (struct __pair_get<1>::__get, __const_get):
817 Fix typo in the return type.
818 * testsuite/tr1/6_containers/utility/19535.cc: New.
819
820 2005-01-19 Loren J. Rittle <ljrittle@acm.org>
821
822 * include/ext/array_allocator.h (array_allocator<>::allocate):
823 Avoid __used. Use __array_used instead.
824 * docs/html/17_intro/BADNAMES: Add list for FreeBSD.
825
826 2005-01-18 David Edelsohn <edelsohn@gnu.org>
827
828 * config/os/aix/os_defines.h (_XOPEN_SOURCE): Delete.
829 (_XOPEN_SOURCE_EXTENDED): Delete.
830
831 2005-01-18 Benjamin Kosnik <bkoz@redhat.com>
832
833 * testsuite/testsuite_performance.h (time_counter::start):
834 Clear. Tweaks.
835 (clear_counters): Inline.
836 (start_counters): Inline.
837 (stop_counters): Inline.
838 * testsuite/performance/20_util/allocator/map_thread.cc: Return.
839 * testsuite/performance/20_util/allocator/insert.cc: Remove bogus
840 return, add return.
841 * testsuite/performance/20_util/allocator/map_thread.cc: Same.
842
843 2005-01-17 Paolo Carlini <pcarlini@suse.de>
844
845 PR libstdc++/19433
846 * include/bits/stl_tree.h (_Rb_tree<>::insert_unique(iterator,
847 const _Val&), _Rb_tree<>::insert_equal(iterator, const _Val&)):
848 Obtain amortized constant complexity if t is inserted right after
849 p - not before p - as per Table 69.
850 * testsuite/performance/23_containers/set_insert_from_sorted.cc: New.
851
852 * testsuite/23_containers/multiset/insert/2.cc: New.
853 * testsuite/23_containers/set/insert/1.cc: Likewise.
854
855 * testsuite/performance/23_containers/set_create_from_sorted.cc:
856 Simplify.
857
858 * include/bits/stl_tree.h: Add a few missing std:: qualifications.
859
860 2005-01-16 Jonathan Wakely <redi@gcc.gnu.org>
861
862 * include/ext/rope: Qualify calls to std::copy() by sequence_buffer.
863 * testsuite/ext/rope/4.cc: Add.
864
865 2005-01-16 Lorenz Minder <lminder@gmx.net>
866 Paolo Carlini <pcarlini@suse.de>
867
868 PR libstdc++/19322
869 * include/c_std/std_cmath.h: Define the C99 classification facilities
870 directly inside namespace std:.
871 * testsuite/26_numerics/cmath/19322.cc: New.
872
873 2005-01-15 David Edelsohn <edelsohn@gnu.org>
874
875 * config/os/aix/os_defines.h (_G_USING_THUNKS): Delete.
876
877 2005-01-14 Paolo Carlini <pcarlini@suse.de>
878
879 PR libstdc++/19422
880 * include/bits/stl_tree.h (_Rb_tree<>::insert_equal(_II, _II),
881 _Rb_tree<>::insert_unique(_II, _II)): Use insert_equal (insert_unique,
882 respectively) with hint (end()).
883 * testsuite/performance/23_containers/set_create_from_sorted.cc: New.
884
885 2005-01-13 Geoffrey Keating <geoffk@apple.com>
886
887 * configure.host (darwin): On darwin8 or later, no need to build
888 libstdc++ with -flat_namespace.
889
890 2005-01-13 Jonathan Wakely <redi@gcc.gnu.org>
891
892 * docs/doxygen/user.cfg.in: Set HAVE_DOT back to YES.
893
894 2005-01-13 Paolo Carlini <pcarlini@suse.de>
895
896 * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
897 Re-enable commented-out test for double type.
898
899 2005-01-11 Paolo Carlini <pcarlini@suse.de>
900 Benjamin Kosnik <bkoz@redhat.com>
901
902 * src/istream.cc (basic_istream<char>::ignore(streamsize),
903 basic_istream<char>::ignore(streamsize, int_type),
904 basic_istream<wchar_t>::ignore(streamsize),
905 basic_istream<wchar_t>::ignore(streamsize, int_type)): In case
906 more than numeric_limits<streamsize>::max() chars are skipped,
907 set _M_gcount = max().
908 * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
909 int_type)): Likewise; keep simple, don't forward.
910
911 2005-01-11 Paolo Carlini <pcarlini@suse.de>
912
913 * src/istream.cc (basic_istream<char>::ignore(streamsize),
914 basic_istream<char>::ignore(streamsize, int_type),
915 basic_istream<wchar_t>::ignore(streamsize),
916 basic_istream<wchar_t>::ignore(streamsize, int_type)): Revert
917 2005-01-05 change: actually, the previous behavior is conforming
918 and consistent with that of get(char_type*, streamsize, char_type),
919 albeit slightly different from that of 3.3/3.4 in a corner case
920 due to the use of snextc.
921 * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
922 int_type)): Likewise.
923 * testsuite/27_io/basic_istream/ignore/char/4.cc: Remove.
924 * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
925
926 2005-01-11 Paolo Carlini <pcarlini@suse.de>
927
928 * include/tr1/type_traits: Implement alignment_of and aligned_storage.
929 * testsuite/tr1/4_metaprogramming/other_transformations/
930 aligned_storage/aligned_storage.cc: New.
931 * testsuite/tr1/4_metaprogramming/other_transformations/
932 aligned_storage/typedefs.cc: Likewise.
933 * testsuite/tr1/4_metaprogramming/type_properties/
934 alignment_of/alignment_of.cc: Likewise.
935 * testsuite/tr1/4_metaprogramming/type_properties/
936 alignment_of/typedefs.cc: Likewise.
937
938 2005-01-10 Paolo Carlini <pcarlini@suse.de>
939
940 * Makefile.in: Regenerate.
941 * libmath/Makefile.in: Likewise.
942 * libsupc++/Makefile.in: Likewise.
943 * po/Makefile.in: Likewise.
944 * src/Makefile.in: Likewise.
945 * testsuite/Makefile.in: Likewise.
946
947 2005-01-10 Paolo Carlini <pcarlini@suse.de>
948
949 * include/bits/stl_algobase.h (lexicographical_compare):
950 Fix concept check.
951
952 2005-01-07 Benjamin Kosnik <bkoz@redhat.com>
953
954 * acinclude.m4: Remove CCODECVT_H.
955 * configure: Regenerate.
956 * include/Makefile.am (host_headers_extra): Move to...
957 (ext_headers): ...here.
958 * include/Makefile.in: Regenerate.
959 * include/ext/enc_filebuf: Remove enc_filebuf, consolidate
960 enc_traits to...
961 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Move...
962 * include/ext/codecvt_specializations.h: ...here. Remove
963 _GLIBCXX_USE___ENC_TRAITS.
964 (__enc_traits): To __encoding_state, put in __gnu_cxx namespace.
965 (enc_char_traits): To __encoding_char_traits, put in __gnu_cxx
966 namespace.
967 * config/locale/generic/codecvt_specializations.h: Remove.
968 * include/bits/codecvt.h: Remove codecvt_specializations.h include.
969 * src/codecvt.cc: Remove __enc_traits::_S_max_size.
970
971 2005-01-06 Benjamin Kosnik <bkoz@redhat.com>
972
973 * include/bits/fstream.tcc: Remove unnecessary qualifications for
974 uglified data members of basic_filebuf, including _M_buf,
975 _M_buf_size, _M_mode, _M_pback_init.
976 * include/std/std_fstream.h: Same.
977
978 2005-01-05 Benjamin Kosnik <bkoz@redhat.com>
979
980 * testsuite/testsuite_hooks.h:
981 (copy_constructor::mark_call): Use __throw_runtime_error.
982 (assignment_operator::mark_call): Same.
983 * testsuite/testsuite_hooks.cc (verify_demangle): Same.
984 (locale_data): Remove, just use runtime_error directly.
985 (environment_variable): Same.
986 (not_found): Same.
987 (run_tests_wrapped_locale): Use __throw_runtime_error.
988 (run_tests_wrapped_env): Same.
989 (semaphore::semaphore): Same.
990 (semaphore::signal): Same.
991 (semaphore::wait): Same.
992 * testsuite/testsuite_abi.h (symbol_error): Remove, use logic_error.
993 * testsuite/testsuite_abi.cc (get_symbol): Use __throw_logic_error.
994 (create_symbols): Use __throw_runtime_error.
995 * src/bitmap_allocator.cc: Use __throw_bad_alloc.
996
997 2005-01-05 Mark Mitchell <mark@codesourcery.com>
998
999 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Remove child
1000 process.
1001
1002 2005-01-05 Paolo Carlini <pcarlini@suse.de>
1003
1004 * src/istream.cc (basic_istream<char>::ignore(streamsize),
1005 basic_istream<char>::ignore(streamsize, int_type),
1006 basic_istream<wchar_t>::ignore(streamsize),
1007 basic_istream<wchar_t>::ignore(streamsize, int_type)): At the end,
1008 first check _M_gcount vs __n.
1009 * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1010 int_type)): Likewise.
1011 * testsuite/27_io/basic_istream/ignore/char/4.cc: New.
1012 * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
1013
1014 2005-01-03 Mark Mitchell <mark@codesourcery.com>
1015
1016 * testsuite/testsuite_hooks.cc: Use __throw_exception_again
1017 instead of just throw.
1018
1019 * testsuite/testsuite_hooks.cc: Update coypright and follow style
1020 guidelines.
1021 * testsuite/testsuite_hooks.h: Likewise.
1022 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
1023 semaphores, not sleep.
1024 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
1025 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
1026 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
1027 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
1028 Likewise.
1029 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
1030 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1031 * testsuite/27_io/objects/char/7.cc: Likewise.
1032 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
1033 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
1034 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
1035
1036 * configure.ac: Check for sys/ipc.h and sys/sem.h.
1037 * config.h.in: Regenerated.
1038 * configure: Likewise.
1039 * testsuite/testsuite_hooks.cc (_GLIBCXX_SYSV_SEM): Conditionally
1040 define.
1041 (sys/types.h): Include.
1042 (sys/ipc.h): Likewise.
1043 (sys/sem.h): Likewise.
1044 (__gnu_test::semun): New type.
1045 (__gnu_test::semaphore::sempaphore): New function.
1046 (__gnu_test::semaphore::~semaphore): Likewise.
1047 (__gnu_test::semaphore::wait): Likewise.
1048 (__gnu_test::semaphore::signal): Likewise.
1049 * testsuite/testsuite_hooks.h (__gnu_test::semaphore): New class.
1050 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
1051 semaphores, not sleep.
1052 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
1053 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
1054 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
1055 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
1056 Likewise.
1057 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
1058 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1059 * testsuite/27_io/objects/char/7.cc: Likewise.
1060 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
1061 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
1062 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
1063
1064 2005-01-03 Paolo Carlini <pcarlini@suse.de>
1065
1066 * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1067 int_type)): Reset _M_gcount to numeric_limits<streamsize>::min().
1068 * src/istream.cc (basic_istream<char>::ignore(streamsize, int_type),
1069 basic_istream<wchar_t>::ignore(streamsize, int_type)): Likewise.
1070 * src/istream.cc (basic_istream<char>::ignore(streamsize),
1071 basic_istream<wchar_t>::ignore(streamsize)): Likewise; fix a typo.
1072
1073 2005-01-02 Paolo Carlini <pcarlini@suse.de>
1074
1075 * src/istream.cc (basic_istream<char>::ignore(streamsize),
1076 basic_istream<char>::ignore(streamsize, int_type),
1077 basic_istream<wchar_t>::ignore(streamsize),
1078 basic_istream<wchar_t>::ignore(streamsize, int_type)): Avoid
1079 _M_gcount overflows.
1080 * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1081 int_type)): Likewise; use snextc in the main loop, consistently
1082 with the specializations above.
1083
1084 2005-01-02 Chris Jefferson <chris@bubblescope.net>
1085
1086 * include/bits/stl_algobase.h (mismatch): Correct concept check.
1087
1088 2005-01-01 Paolo Carlini <pcarlini@suse.de>
1089
1090 * testsuite/ext/enc_filebuf/char/13189.cc: Fix, first include
1091 testsuite_hooks.h, to know whether including ext/enc_filebuf.h.
1092 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1093
1094 2005-01-01 Paolo Carlini <pcarlini@suse.de>
1095
1096 * testsuite/27_io/basic_istream/extractors_character/char/1.cc: Fix,
1097 null-terminate array1 at the outset.
1098 * testsuite/27_io/basic_istream/extractors_character/wchar_t/1.cc:
1099 Likewise.