aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
AgeCommit message (Collapse)AuthorFilesLines
2007-05-11pod_char_traits.h (char_traits<>::move): Use __builtin_memmove.Paolo Carlini33-135/+261
2007-05-11 Paolo Carlini <pcarlini@suse.de> * include/ext/pod_char_traits.h (char_traits<>::move): Use __builtin_memmove. * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name, collate_byname(const char*, size_t)): Use __builtin_strcmp. * include/bits/locale_facets.h: Use __builtin_mem* and __builtin_str* everywhere. * include/bits/codecvt.h (codecvt_byname(const char*, size_t)): Use __builtin_strcmp. * include/bits/char_traits.h: Use __builtin_mem* everywhere. * include/bits/fstream.tcc (basic_filebuf<>::underflow, imbue): Use __builtin_memcpy and __builtin_memmove. * include/bits/locale_facets_nonio.h (moneypunct_byname(const char*, size_t __refs)): Use __builtin_strcmp. * include/std/bitset (bitset<>::_M_do_reset): Use __builtin_memset. * config/locale/gnu/c_locale.h: Use __builtin_strlen, __builtin_strcmp, and __builtin_memcpy. * config/locale/gnu/messages_members.h: Likewise. * config/locale/gnu/time_members.h: Likewise. * config/locale/generic/c_locale.h: Likewise. * config/locale/generic/messages_members.h: Likewise. * config/locale/generic/time_members.h: Likewise. * config/os/gnu-linux/ctype_noninline.h: Likewise, avoid strdup. * config/os/tpf/ctype_noninline.h: Likewise. * config/locale/generic/codecvt_members.cc: Include <cstring>. * config/locale/generic/ctype_members.cc: Likewise. * config/locale/generic/collate_members.cc: Likewise. * config/locale/gnu/c++locale_internal.h: Likewise. * config/locale/darwin/ctype_members.cc: Likewise. * src/ctype.cc: Likewise. * testsuite/19_diagnostics/logic_error/what-1.cc: Likewise. * testsuite/19_diagnostics/logic_error/what-2.cc: Likewise. * testsuite/19_diagnostics/runtime_error/what-1.cc: Likewise. * testsuite/19_diagnostics/runtime_error/what-2.cc: Likewise. * testsuite/19_diagnostics/runtime_error/what-3.cc: Likewise. * config/locale/gnu/messages_members.cc: Avoid strdup. * config/locale/gnu/monetary_members.cc: Likewise. * config/locale/gnu/time_members.cc: Likewise. * config/locale/gnu/time_members.cc: Likewise. * config/locale/generic/c_locale.cc: Likewise. From-SVN: r124623
2007-05-11stdexcept: Remove extra spacing.Benjamin Kosnik8-59/+239
2007-05-11 Benjamin Kosnik <bkoz@redhat.com> * include/std/stdexcept: Remove extra spacing. * testsuite/19_diagnostics/stdexceptions.cc: Break into... * testsuite/19_diagnostics/bad_exception: ...this. Populate. * testsuite/19_diagnostics/logic_error: ... this. * testsuite/19_diagnostics/logic_error/what-1.cc: ...this. * testsuite/19_diagnostics/logic_error/what-2.cc: ...this. * testsuite/19_diagnostics/runtime_error: ...this. * testsuite/19_diagnostics/runtime_error/what-1.cc: ...this. * testsuite/19_diagnostics/runtime_error/what-2.cc: ...this. * testsuite/19_diagnostics/runtime_error/what-3.cc: ...this. * testsuite/19_diagnostics/23591_thread-1.c: Move... * testsuite/19_diagnostics/bad_exception/23591_thread-1.c: ...here. From-SVN: r124621
2007-05-1111.cc: Include <cstring>.Paolo Carlini67-67/+229
2007-05-10 Paolo Carlini <pcarlini@suse.de> * 27_io/objects/wchar_t/11.cc: Include <cstring>. * 27_io/objects/wchar_t/10.cc: Likewise. * 27_io/objects/wchar_t/12.cc: Likewise. * 27_io/basic_streambuf/sputbackc/char/9538.cc: Likewise. * 27_io/basic_streambuf/sgetn/char/1.cc: Likewise. * 27_io/basic_streambuf/overflow/char/1.cc: Likewise. * 27_io/basic_streambuf/sgetc/char/1.cc: Likewise. * 27_io/basic_streambuf/sputn/wchar_t/1.cc: Likewise. * 27_io/basic_streambuf/sputn/char/1.cc: Likewise. * 27_io/basic_ios/cons/char/3.cc: Likewise. * 27_io/basic_stringbuf/setbuf/char/2.cc: Likewise. * 27_io/basic_stringbuf/setbuf/char/3.cc: Likewise. * 27_io/basic_stringbuf/setbuf/char/4.cc: Likewise. * 27_io/basic_istream/extractors_character/char/4.cc: Likewise. * 27_io/fpos/mbstate_t/1.cc: Likewise. * 27_io/basic_filebuf/setbuf/char/2.cc: Likewise. * 27_io/basic_filebuf/setbuf/char/3.cc: Likewise. * 25_algorithms/copy/streambuf_iterators/char/2.cc: Likewise. * 25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise. * 19_diagnostics/stdexceptions.cc: Likewise. * 21_strings/char_traits/requirements/short/1.cc: Likewise. * 21_strings/basic_string/compare/char/1.cc: Likewise. * 21_strings/basic_string/capacity/1.cc: Likewise. * ext/codecvt/char-1.cc: Likewise. * ext/codecvt/char-2.cc: Likewise. * ext/codecvt/1.cc: Likewise. * ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise. * ext/stdio_sync_filebuf/char/1.cc: Likewise. * ext/stdio_filebuf/char/2.cc: Likewise. * ext/stdio_filebuf/char/10063-1.cc: Likewise. * 22_locale/ctype/narrow/char/19955.cc: Likewise. * 22_locale/codecvt/unshift/wchar_t/1.cc: Likewise. * 22_locale/codecvt/unshift/wchar_t/2.cc: Likewise. * 22_locale/codecvt/unshift/wchar_t/3.cc: Likewise. * 22_locale/codecvt/unshift/wchar_t/4.cc: Likewise. * 22_locale/codecvt/unshift/char/1.cc: Likewise. * 22_locale/codecvt/length/wchar_t/1.cc: Likewise. * 22_locale/codecvt/length/wchar_t/2.cc: Likewise. * 22_locale/codecvt/length/wchar_t/3.cc: Likewise. * 22_locale/codecvt/length/wchar_t/4.cc: Likewise. * 22_locale/codecvt/length/wchar_t/5.cc: Likewise. * 22_locale/codecvt/length/wchar_t/6.cc: Likewise. * 22_locale/codecvt/length/wchar_t/7.cc: Likewise. * 22_locale/codecvt/always_noconv/char/1.cc: Likewise. * 22_locale/codecvt/encoding/char/1.cc: Likewise. * 22_locale/codecvt/in/wchar_t/1.cc: Likewise. * 22_locale/codecvt/in/wchar_t/2.cc: Likewise. * 22_locale/codecvt/in/wchar_t/3.cc: Likewise. * 22_locale/codecvt/in/wchar_t/4.cc: Likewise. * 22_locale/codecvt/in/wchar_t/5.cc: Likewise. * 22_locale/codecvt/in/wchar_t/6.cc: Likewise. * 22_locale/codecvt/in/wchar_t/7.cc: Likewise. * 22_locale/codecvt/in/wchar_t/8.cc: Likewise. * 22_locale/codecvt/in/wchar_t/9.cc: Likewise. * 22_locale/codecvt/in/char/1.cc: Likewise. * 22_locale/codecvt/max_length/char/1.cc: Likewise. * 22_locale/codecvt/out/wchar_t/1.cc: Likewise. * 22_locale/codecvt/out/wchar_t/2.cc: Likewise. * 22_locale/codecvt/out/wchar_t/3.cc: Likewise. * 22_locale/codecvt/out/wchar_t/4.cc: Likewise. * 22_locale/codecvt/out/wchar_t/5.cc: Likewise. * 22_locale/codecvt/out/wchar_t/6.cc: Likewise. * 22_locale/codecvt/out/wchar_t/7.cc: Likewise. * 22_locale/codecvt/out/char/1.cc: Likewise. * 22_locale/locale/cons/5.cc: Likewise. * 22_locale/collate_byname/named_equivalence.cc: Likewise. From-SVN: r124610
2007-05-09Remove conflict markerMark Mitchell1-1/+0
From-SVN: r124566
2007-05-09cxxabi.h (_GLIBCXX_NOTHROW): New macro.Mark Mitchell3-5/+29
* libstdc++-v3/libsupc++/cxxabi.h (_GLIBCXX_NOTHROW): New macro. (__cxa_atexit): Use it. * testsuite/lib/libstdc++.exp (v3_target_compile_as_c): For installed-tree testing, search more include directories. From-SVN: r124565
2007-05-08type_traits (make_signed): Remove specializations for floating point types.Benjamin Kosnik8-61/+22
2007-05-08 Benjamin Kosnik <bkoz@redhat.com> * include/std/type_traits (make_signed): Remove specializations for floating point types. (make_unsigned): Same. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Fix. * testsuite/20_util/make_signed/requirements/typedefs-1.cc: Same. * testsuite/20_util/make_signed/requirements/typedefs-2.cc: Same. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Same. * testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: Same. * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Same. From-SVN: r124543
2007-05-08types_std_c++0x_neg.cc: New.Benjamin Kosnik2-0/+78
2007-05-08 Benjamin Kosnik <bkoz@redhat.com> * testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: New. From-SVN: r124540
2007-05-08cxxabi-internal.h: Remove, to be replaced by...Jason Merrill14-569/+570
* libsupc++/cxxabi-internal.h: Remove, to be replaced by... * libsupc++/cxxabi-forced.h: ...this new file. * include/ext/vstring.tcc: Include cxxabi-forced.h instead. * include/bits/istream.tcc: Likewise. * include/bits/ostream.tcc: Likewise. * include/bits/basic_string.tcc: Likewise. * include/bits/ostream_insert.h: Likewise. * include/bits/fstream.tcc: Likewise. * include/std/bitset: Likewise. * libsupc++/cxxabi.h: Restore previous contents. * Makefile.am (headers): Add cxxabi-forced.h. * Makefile.in: Regenerate. From-SVN: r124539
2007-05-08testsuite_abi.cc: Add CXXABI_1.3.2.Benjamin Kosnik3-1/+9
2007-05-08 Benjamin Kosnik <bkoz@redhat.com> * testsuite/util/testsuite_abi.cc: Add CXXABI_1.3.2. * libsupc++/cxxabi-internal.h (__foreign_exception::__pure): To __pure_virtual. From-SVN: r124537
2007-05-07* include/bits/ostream.tcc (operator<<(char*)): Add __s.Jason Merrill2-4/+6
From-SVN: r124522
2007-05-07gnu.ver: Fix symbol versions.Jason Merrill3-4/+21
* config/abi/pre/gnu.ver: Fix symbol versions. * config/abi/pre/gnu-versioned-namespace.ver: Likewise. From-SVN: r124520
2007-05-07* config/os/mingw32/os_defines.h (NOMINMAX): Update comment.Danny Smith2-1/+5
From-SVN: r124519
2007-05-07re PR other/28145 (C++ (throw() and catch(...) {/* fall through */ } ) and ↵Jason Merrill24-547/+915
pthread cancellation are incompatible (at least with NPTL)) PR c++/28145 * libsupc++/cxxabi.h (__forced_unwind, __foreign_exception): New classes. * libsupc++/eh_exception.cc: Define their destructors. * config/abi/pre/gnu.ver: Export their type_infos. * config/abi/pre/gnu-versioned-namespace.ver: Likewise. * libsupc++/eh_personality.cc: A handler for abi::__forced_unwind matches a forced unwind, and a handler for abi::__foreign_exception matches a foreign exception. * include/bits/istream.tcc: Rethrow forced unwind. * include/bits/ostream.tcc: Likewise. * include/bits/ostream_insert.h: Likewise. * include/bits/basic_string.tcc (operator>>, getline): Likewise. * include/bits/fstream.tcc (basic_filebuf::close): Likewise. * include/ext/vstring.cc (operator>>, getline): Likewise. * src/istream.cc: Likewise. * src/compatibility.cc (basic_istream::ignore): Likewise. * include/std/bitset (operator>>): Likewise. * include/std/fstream (basic_filebuf::close): Remove throw() spec. * libsupc++/cxxabi-internal.h: Split out from... * libsupc++/cxxabi.h: ...here. From-SVN: r124517
2007-05-072007-05-07 Paolo Carlini <pcarlini@suse.de>Paolo Carlini1-1/+1
* Remove spurious space in last ChangeLog entry. From-SVN: r124513
2007-05-07stl_algobase.h: Do not include <cstring>.Paolo Carlini1-6/+6
2007-05-07 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_algobase.h: Do not include <cstring>. (copy(const _Tp*, const _Tp*, _Tp*), __copy_b(const _Tp*, const _Tp*, _Tp*)): Use __builtin_memmove. (__fill_aux): Use __builtin_memset. (equal(const _Tp*, const _Tp*, const _Tp*), lexicographical_compare(const unsigned char*, const unsigned char*, const unsigned char*, const unsigned char*)): Use __builtin_memcmp. * include/bits/valarray_array.h: Do not include <cstring>. (_Array_default_ctor<, true>::_S_do_it): Use __builtin_memset. (_Array_copy_ctor<, true>::_S_do_it, _Array_copier<, true>::_S_do_it): Use __builtin_memcpy. * include/ext/algorithm (__lexicographical_compare_3way(const unsigned char*, const unsigned char*, const unsigned char*, const unsigned char*)): Use __builtin_memcmp. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Adjust dg-error line number. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. From-SVN: r124512
2007-05-07stl_algobase.h: Do not include <cstring>.Paolo Carlini5-14/+40
2007-05-07 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_algobase.h: Do not include <cstring>. (copy(const _Tp*, const _Tp*, _Tp*), __copy_b(const _Tp*, const _Tp*, _Tp*)): Use __builtin_memmove. (__fill_aux): Use __builtin_memset. (equal(const _Tp*, const _Tp*, const _Tp*), lexicographical_compare(const unsigned char*, const unsigned char*, const unsigned char*, const unsigned char*)): Use __builtin_memcmp. * include/bits/valarray_array.h: Do not include <cstring>. (_Array_default_ctor<, true>::_S_do_it): Use __builtin_memset. (_Array_copy_ctor<, true>::_S_do_it, _Array_copier<, true>::_S_do_it): Use __builtin_memcpy. * include/ext/algorithm (__lexicographical_compare_3way(const unsigned char*, const unsigned char*, const unsigned char*, const unsigned char*)): Use __builtin_memcmp. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Adjust dg-error line number. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. From-SVN: r124511
2007-05-0714220.cc: XFAIL on Solaris 2.10.Mark Mitchell3-0/+16
* testsuite/22_locale/num_put/put/char/14220.cc: XFAIL on Solaris 2.10. * testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise. From-SVN: r124508
2007-05-07libstdc++.exp (v3_target_compile_as_c): In installed-tree testing, use ↵Mark Mitchell2-3/+11
"remote_exec host", not "remote_exec exec". * testsuite/lib/libstdc++.exp (v3_target_compile_as_c): In installed-tree testing, use "remote_exec host", not "remote_exec exec". Trip trailing newlines from output of -dumpversion and -dumpmachine. From-SVN: r124505
2007-05-07type_traits: (make_signed, make_unsigned): Adjust for enum sizes.Benjamin Kosnik7-16/+169
2007-05-07 Benjamin Kosnik <bkoz@redhat.com> Howard Hinnant <hhinnant@apple.com> * include/std/type_traits: (make_signed, make_unsigned): Adjust for enum sizes. * testsuite/20_util/make_unsigned/requirements/typedefs.cc: Move to... * testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: ...here. * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Add, compile with -funsigned-char -fshort-enums. * testsuite/20_util/make_signed/requirements/typedefs.cc: Move to... * testsuite/20_util/make_signed/requirements/typedefs-1.cc: ...here. * testsuite/20_util/make_signed/requirements/typedefs-2.cc: Add, compile with -funsigned-char -fshort-enums. * testsuite/20_util/headers/type_traits/types_std_c++0x_neg.cc: Add a temporary xfail to this test for all platforms. Co-Authored-By: Howard Hinnant <hhinnant@apple.com> From-SVN: r124500
2007-05-06complex: Add missing extern template declarations.Paolo Carlini4-5/+170
2007-05-06 Paolo Carlini <pcarlini@suse.de> * include/std/complex: Add missing extern template declarations. * testsuite/26_numerics/complex/complex_inserters_extractors.cc: Move... * testsuite/26_numerics/complex/inserters_extractors/char/1.cc: ... here. * testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc: New. From-SVN: r124477
2007-05-062007-05-06 Paolo Carlini <pcarlini@suse.de>Paolo Carlini1-1/+1
* Fix PR number in last ChangeLog entry. From-SVN: r124473
2007-05-06re PR libstdc++/31836 (FAIL: ↵Paolo Carlini3-0/+44
27_io/basic_istream/extractors_arithmetic/char/12.cc execution test) 2007-05-06 Paolo Carlini <pcarlini@suse.de> PR libstdc++/31836 * testsuite/17_intro/headers/c++200x/all.cc: Protect inclusion of C99 headers. * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Likewise. From-SVN: r124472
2007-05-06c_locale.cc: Don't use __builtin_huge_val* when __*_HAS_INFINITY__ is false.Paolo Carlini2-12/+57
2007-05-06 Paolo Carlini <pcarlini@suse.de> * config/locale/generic/c_locale.cc: Don't use __builtin_huge_val* when __*_HAS_INFINITY__ is false. From-SVN: r124470
2007-05-05stl_raw_storage_iter.h (class raw_storage_iterator): Adjust template ↵Paolo Carlini2-7/+13
parameter name. 2007-05-04 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_raw_storage_iter.h (class raw_storage_iterator): Adjust template parameter name. From-SVN: r124459
2007-05-05cxxabi.h (__cxa_atexit): Conditionalize exception specification on #ifdef ↵Mark Mitchell2-1/+11
__cplusplus. * libsupc++/cxxabi.h (__cxa_atexit): Conditionalize exception specification on #ifdef __cplusplus. From-SVN: r124456
2007-05-04stl_memory.h: Rename to stl_auto_ptr.h.Paolo Carlini10-86/+109
2007-05-04 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_memory.h: Rename to stl_auto_ptr.h. (__get_temporary_buffer, get_temporary_buffer, return_temporary_buffer): Move... * include/bits/stl_tempbuf.h: ... here. * include/std/memory: Adjust includes. * testsuite/20_util/auto_ptr/assign_neg.cc: Adjust dg-error line numbers. * include/Makefile.am: Adjust. * include/Makefile.in: Regenerate. * testsuite/util/testsuite_iterators.h: Do not include the entire <iterator>. * include/bits/stl_iterator_base_types.h: Adjust includes. * testsuite/25_algorithms/unique_copy/2.cc: Include <functional>. From-SVN: r124438
2007-05-04atexit_arm.cc: New file.Mark Mitchell6-22/+68
* libsupc++/atexit_arm.cc: New file. * libsupc++/vec.cc (__aeabi_atexit): Remove. * libsupc++/cxxabi.h (__cxa_atexit): Add exception specification. * libsupc++/Makefile.am: Add atexit_arm.cc. * libsupc++/Makefile.in: Regenerated. From-SVN: r124436
2007-05-04stl_construct.h (_Destroy(_ForwardIterator, _ForwardIterator __last, ↵Paolo Carlini5-65/+106
_Allocator)): Change the last parameter to _Allocator&. 2007-05-04 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_construct.h (_Destroy(_ForwardIterator, _ForwardIterator __last, _Allocator)): Change the last parameter to _Allocator&. * include/bits/stl_uninitialized.h (__uninitialized_copy_a, __uninitialized_fill_a, __uninitialized_fill_n_a, __uninitialized_fill_copy, __uninitialized_copy_fill, __uninitialized_copy_copy): Likewise. * include/ext/rope: Adjust everywhere. * include/ext/ropeimpl.h: Likewise. From-SVN: r124427
2007-05-03type_traits (enable_if): New.Benjamin Kosnik33-6/+1568
2007-05-03 Benjamin Kosnik <bkoz@redhat.com> * include/std/type_traits (enable_if): New. (conditional): New. (__decay_selector, decay): New. (__cv_selector, __match_cv_qualifiers): New. (__make_unsigned, __make_unsigned_selector, make_unsigned): New. (__make_signed, __make_signed_selector, make_signed): New. (has_trivial_constructor): ... to has_trivial_default_constructor. (has_nothrow_constructor): ... to has_nothrow_default_constructor. (has_trivial_copy): ... to has_trivial_copy_constructor. (has_nothrow_copy): ... to has_nothrow_copy_constructor. * include/tr1/type_traits_fwd: Move to... * include/tr1/type_traitsfwd: ... this, consistency with ios/string/locale forward headers. * include/tr1/type_traits: Adjust include. * include/Makefile.am (tr1_headers): Change type_traits_fwd.h to type_traitsfwd.h. * include/Makefile.in: Regenerate. * testsuite/23_containers/tuple: Move... * testsuite/20_util/tuple:... here. * testsuite/20_util/conditional: New. * testsuite/20_util/conditional/requirements: Same. * testsuite/20_util/conditional/requirements/ explicit_instantiation.cc: Same. * testsuite/20_util/conditional/requirements/typedefs.cc: Same. * testsuite/20_util/decay: Same. * testsuite/20_util/decay/requirements: Same. * testsuite/20_util/decay/requirements/explicit_instantiation.cc: Same. * testsuite/20_util/decay/requirements/typedefs.cc: Same. * testsuite/20_util/enable_if: Same. * testsuite/20_util/enable_if/requirements: Same. * testsuite/20_util/enable_if/requirements/ explicit_instantiation.cc: Same. * testsuite/20_util/enable_if/requirements/typedefs.cc: Same. * testsuite/20_util/enable_if/requirements/typedefs_neg.cc: Same. * testsuite/20_util/has_nothrow_copy_constructor: Same. * testsuite/20_util/has_nothrow_copy_constructor/requirements: Same. * testsuite/20_util/has_nothrow_copy_constructor/requirements/ explicit_instantiation.cc: Same. * testsuite/20_util/has_nothrow_copy_constructor/requirements/ typedefs.cc: Same. * testsuite/20_util/has_nothrow_copy_constructor/value.cc: Same. * testsuite/20_util/has_nothrow_default_constructor: Same. * testsuite/20_util/has_nothrow_default_constructor/requirements: Same. * testsuite/20_util/has_nothrow_default_constructor/requirements/ explicit_instantiation.cc: Same. * testsuite/20_util/has_nothrow_default_constructor/requirements/ typedefs.cc: Same. * testsuite/20_util/has_nothrow_default_constructor/value.cc: Same. * testsuite/20_util/has_trivial_copy_constructor: Same. * testsuite/20_util/has_trivial_copy_constructor/requirements: Same. * testsuite/20_util/has_trivial_copy_constructor/requirements/ explicit_instantiation.cc: Same. * testsuite/20_util/has_trivial_copy_constructor/requirements/ typedefs.cc: Same. * testsuite/20_util/has_trivial_copy_constructor/value.cc: Same. * testsuite/20_util/has_trivial_default_constructor: Same. * testsuite/20_util/has_trivial_default_constructor/requirements: Same. * testsuite/20_util/has_trivial_default_constructor/requirements/ explicit_instantiation.cc: Same. * testsuite/20_util/has_trivial_default_constructor/requirements/ typedefs.cc: Same. * testsuite/20_util/has_trivial_default_constructor/value.cc: Same. * testsuite/20_util/headers/type_traits/types_std_c++0x_neg.cc: Same. * testsuite/20_util/make_signed: Same. * testsuite/20_util/make_signed/requirements: Same. * testsuite/20_util/make_signed/requirements/ explicit_instantiation.cc: Same. * testsuite/20_util/make_signed/requirements/typedefs.cc: Same. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Same. * testsuite/20_util/make_unsigned: Same. * testsuite/20_util/make_unsigned/requirements: Same. * testsuite/20_util/make_unsigned/requirements/ explicit_instantiation.cc: Same. * testsuite/20_util/make_unsigned/requirements/typedefs.cc: Same. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Same. From-SVN: r124374
2007-05-02re PR libstdc++/31777 (GLIBCXX_FORCE_NEW doesn't always work in pool_allocator)Paolo Carlini2-3/+9
2007-05-02 Paolo Carlini <pcarlini@suse.de> PR libstdc++/31777 * include/ext/pool_allocator.h (__pool_alloc<>::allocate, __pool_alloc<>::deallocate): Fix _S_force_new check. From-SVN: r124355
2007-05-01*: Move to...Benjamin Kosnik17-0/+11
2007-05-01 Benjamin Kosnik <bkoz@redhat.com> * 23_containers/requirements/sequences/dr438/deque/*: Move to... * 23_containers/deque/requirements/dr438: ...here. * 23_containers/requirements/sequences/dr438/list/*: Move to... * 23_containers/list/requirements/dr438: ...here. * 23_containers/requirements/sequences/dr438/vector/*: Move to... * 23_containers/vector/requirements/dr438: ...here. From-SVN: r124319
2007-05-01explicit_instantiations.cc: Change to...Benjamin Kosnik62-1/+6
2007-05-01 Benjamin Kosnik <bkoz@redhat.com> * testsuite/*/explicit_instantiations.cc: Change to... * testsuite/*/explicit_instantiation.cc: ... this. From-SVN: r124318
2007-05-01explicit_instantiations.cc: Change "basic_ofstream" in comment to type_traits.Benjamin Kosnik55-54/+59
2007-05-01 Benjamin Kosnik <bkoz@redhat.com> * tr1/4_metaprogramming/*/explicit_instantiations.cc: Change "basic_ofstream" in comment to type_traits. From-SVN: r124317
2007-04-302007-04-30 Benjamin Kosnik <bkoz@redhat.com>Benjamin Kosnik157-33/+2862
Directory layout flattening. From-SVN: r124307
2007-04-30libstdc++.exp (v3_target_compile_as_c): Correct regexp to filter out ↵Hans-Peter Nilsson2-1/+6
-nostdinc++. * testsuite/lib/libstdc++.exp (v3_target_compile_as_c): Correct regexp to filter out -nostdinc++. From-SVN: r124298
2007-04-30PR libstdc++/30449 (equal)Paolo Carlini5-174/+123
2007-04-30 Paolo Carlini <pcarlini@suse.de> PR libstdc++/30449 (equal) * include/bits/stl_algobase.h (struct __niter_base): Add. (copy(_II, _II, _OI), copy_backward(_BI1, _BI1, _BI2), fill(_ForwardIterator, _ForwardIterator, const _Tp&), fill_n(_OI, _Size, const _Tp&), equal(_II1, _II1, _II2)): Use it. (struct __copy_normal, __copy_backward_normal, struct __fill_normal, struct __fill_n_normal): Remove. (struct __equal, struct __equal_aux): Add. * include/bits/stl_iterator.h: Add _Iterator_type typedef. * include/bits/stl_algobase.h (__fill_aux(wchar_t*, wchar_t*, wchar_t), __fill_n_aux(wchar_t*, _Size, wchar_t)): Remove. * testsuite/23_containers/requirements/sequences/dr438/vector/ constructor_1_neg.cc: Adjust dg-error line number. * testsuite/23_containers/requirements/sequences/dr438/vector/ constructor_2_neg.cc: Likewise. From-SVN: r124295
2007-04-30type_traits (is_pod): Use __is_pod.Paolo Carlini6-19/+21
2007-04-30 Paolo Carlini <pcarlini@suse.de> * include/tr1/type_traits (is_pod): Use __is_pod. * testsuite/tr1/4_metaprogramming/type_properties/ has_trivial_destructor/has_trivial_destructor.cc: Adjust. * testsuite/tr1/4_metaprogramming/type_properties/ has_nothrow_constructor/has_nothrow_constructor.cc: Likewise. * testsuite/tr1/4_metaprogramming/type_properties/ has_trivial_constructor/has_trivial_constructor.cc: Likewise. * testsuite/tr1/4_metaprogramming/type_properties/ is_pod/is_pod.cc: Likewise. From-SVN: r124294
2007-04-29localefwd.h: Remove redundant inline qualifiers.Paolo Carlini4-51/+53
2007-04-29 Paolo Carlini <pcarlini@suse.de> * include/bits/localefwd.h: Remove redundant inline qualifiers. (__check_facet): Move... * include/bits/basic_ios.h: ... here. (widen(char), narrow(char_type, char)): Define inline. * include/bits/basic_ios.tcc (widen(char), narrow(char_type, char)): Remove. From-SVN: r124282
2007-04-27DR 438, [DR].Paolo Carlini27-46/+710
2007-04-27 Paolo Carlini <pcarlini@suse.de> DR 438, [DR]. * include/bits/basic_string.h (_S_construct_aux(_InIterator, _InIterator, const _Alloc&, __true_type)): Do not cast the second argument. * include/ext/rc_string_base.h (_S_construct_aux(_Integer, _Integer, const _Alloc&, std::__true_type)): Likewise. * include/ext/sso_string_base.h (_M_construct_aux(_InIterator, _InIterator, std::__true_type)): Likewise. * include/bits/stl_deque.h (_M_initialize_dispatch(_Integer, _Integer, __true_type)): Cast the first argument. (_M_assign_dispatch(_Integer, _Integer, __true_type)): Do not cast the arguments. (_M_insert_dispatch(iterator, _Integer, _Integer, __true_type)): Likewise. * include/bits/stl_list.h (_M_initialize_dispatch(_Integer, _Integer, __true_type)): Likewise. (_M_assign_dispatch(_Integer, _Integer, __true_type)): Do not cast both arguments. * include/bits/stl_bvector.h (_M_initialize_dispatch(_Integer, _Integer, __true_type)): Cast the first argument. (_M_assign_dispatch(_Integer, _Integer, __true_type)): Do not cast the arguments. * include/bits/stl_vector.h (_M_initialize_dispatch(_Integer, _Integer, __true_type)): Cast the first argument. (_M_assign_dispatch(_Integer, _Integer, __true_type)): Do not cast the arguments. (_M_insert_dispatch(iterator, _Integer, _Integer, __true_type)): Likewise. * testsuite/21_strings/basic_string/requirements/dr438/ constructor.cc: New. * testsuite/ext/vstring/requirements/dr438/constructor.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/deque/ assign_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/deque/ constructor.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/deque/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/deque/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/deque/ insert_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/list/ assign_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/list/ constructor.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/list/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/list/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/list/ insert_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/vector/ assign_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/vector/ constructor.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/vector/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/vector/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/vector/ insert_neg.cc: Likewise. * testsuite/23_containers/requirements/sequences/dr438/vector/ bool/constructor.cc: Likewise. * docs/html/ext/howto.html: Add an entry for DR 438. From-SVN: r124243
2007-04-25locale_classes.h: Remove redundant inline specifiers.Paolo Carlini5-29/+43
2007-04-25 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_classes.h: Remove redundant inline specifiers. * include/bits/ios_base.h: Likewise. * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error line numbers. * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise. From-SVN: r124148
2007-04-24locale_facets.h (class collate, [...]): Move...Paolo Carlini17-476/+595
2007-04-24 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.h (class collate, class collate_byname): Move... * include/bits/locale_classes.h: ... here. * include/bits/locale_facets.tcc (locale::combine, locale::operator(), has_facet, use_facet, collate::_M_compare, collate::_M_transform, collate::do_compare, collate::do_transform, collate::do_hash): Move... * include/bits/locale_classes.tcc: ... here, new. * include/Makefile.am: Add. * testsuite/util/testsuite_abi.h: Include <locale>. * include/std/locale: Tweak. * include/std/istream: Likewise. * include/std/ostream: Likewise. * include/bits/codecvt.h: Likewise. * include/Makefile.in: Regenerate. * include/bits/codecvt.h: Adjust extern template declarations. * include/bits/ostream_insert.h: Likewise. * include/bits/ostream.tcc: Likewise. * include/bits/locale_facets.h: Do not include <bits/codecvt.h>. * include/std/fstream: Do it here. * include/bits/locale_facets_nonio.h: Likewise. From-SVN: r124114
2007-04-23locale_facets.h (class time_base, [...]): Move...Paolo Carlini11-3154/+3283
2007-04-23 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.h (class time_base, struct __timepunct_cache, class __timepunct, class time_get, class time_get_byname, class time_put, class time_put_byname, class money_base, struct __moneypunct_cache, class moneypunct, class moneypunct_byname, class money_get, class money_put, struct messages_base, class messages, class messages_byname): Move... * include/bits/locale_facets_nonio.h: ... here. * include/bits/locale_facets.tcc (struct __use_cache<__moneypunct_cache<> >, __moneypunct_cache<>::_M_cache, money_get<>::_M_extract, money_get<>::__do_get, money_get<>::do_get, money_put<>::_M_insert, money_put<>::__do_put, money_put<>::do_put, time_get<>::do_date_order, time_get<>::_M_extract_via_format, time_get<>::_M_extract_num, time_get<>::_M_extract_name, time_get<>::do_get_time, time_get<>::do_get_date, time_get<>::do_get_weekday, time_get<>::do_get_monthname, time_get<>::do_get_year, time_put<>::put, time_put<>::do_put): Move... * include/bits/locale_facets_nonio.tcc: ... here. * include/Makefile.am: Add. * include/std/locale: Adjust includes. * include/std/fstream: Likewise. * include/std/istream: Likewise. * include/std/ostream: Likewise. * include/Makefile.in: Regenerate. From-SVN: r124080
2007-04-23testsuite_flags.in: Add --build-cc option.Nathan Sidwell3-5/+21
* scripts/testsuite_flags.in: Add --build-cc option. * testsuite/lib/libstdc++.exp (libstdc++_init): Set cc. Fix typo in previous change. (v3_target_compile_as_c): Use cc. From-SVN: r124058
2007-04-23libstdc++.exp (libstdc++_init): Use the same flags for remote host testing ↵Mark Mitchell2-27/+55
we use for local host testing. * testsuite/lib/libstdc++.exp (libstdc++_init): Use the same flags for remote host testing we use for local host testing. Copy all testsuite headers to the remote host (v3_target_compile_as_c): Use remote_exec, not just exec. From-SVN: r124051
2007-04-22functional: Formatting fixes.Paolo Carlini2-32/+36
2007-04-22 Paolo Carlini <pcarlini@suse.de> * include/tr1/functional: Formatting fixes. From-SVN: r124041
2007-04-22concurrence.h: Do not include <cstdlib>, use __builtin_abort.Paolo Carlini6-12/+17
2007-04-22 Paolo Carlini <pcarlini@suse.de> * include/ext/concurrence.h: Do not include <cstdlib>, use __builtin_abort. * include/debug/debug.h: Likewise. * include/tr1/memory: Likewise. * include/tr1/boost_shared_ptr.h: Likewise. * include/tr1/functional: Likewise. From-SVN: r124040
2007-04-22locale_facets.tcc: Do not include <typeinfo>.Paolo Carlini12-12/+40
2007-04-22 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.tcc: Do not include <typeinfo>. * testsuite/27_io/basic_ios/imbue/14072.cc: Do it here. * testsuite/27_io/basic_ios/cons/char/3.cc: Likewise. * testsuite/27_io/basic_istream/sentry/pod/1.cc: Likewise. * testsuite/27_io/basic_ostream/sentry/pod/1.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/ pod/10081-in.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/ pod/10081-out.cc: Likewise. * testsuite/22_locale/locale/cons/2.cc: Likewise. * testsuite/22_locale/locale/cons/unicode.cc: Likewise. * testsuite/22_locale/numpunct/members/pod/2.cc: Likewise. * testsuite/22_locale/global_templates/1.cc: Likewise. From-SVN: r124039
2007-04-19configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu* for long ↵Joseph Myers6-2/+24
double compatibility. gcc: * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu* for long double compatibility. * configure: Regenerate. libstdc++-v3: * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu* for long double compatibility. * configure: Regenerate. * src/complex_io.cc, src/istream-inst.cc, src/ostream-inst.cc: Condition some _GLIBCXX_LDBL_COMPAT calls on _GLIBCXX_USE_WCHAR_T. From-SVN: r123972
2007-04-14configure.ac: Change how LIBSUPCXX_PICFLAGS is set.Steve Ellcey3-8/+9
* configure.ac: Change how LIBSUPCXX_PICFLAGS is set. * configure: Regenerate. From-SVN: r123828
2007-04-14c_locale.cc: Include <limits>.Paolo Carlini2-0/+5
2007-04-14 Paolo Carlini <pcarlini@suse.de> * config/locale/generic/c_locale.cc: Include <limits>. From-SVN: r123816