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