summaryrefslogtreecommitdiff
path: root/libstdc++-v3
Commit message (Collapse)AuthorAgeFilesLines
* 2011-10-12 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-10-1213-28/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PR c++/50594 * decl.c (cxx_init_decl_processing): Add __attribute__((externally_visible)) to operator new and operator delete library fn. 2011-10-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50594 * libsupc++/new (operator new, operator delete): Decorate with __attribute__((__externally_visible__)). * include/bits/c++config: Add _GLIBCXX_THROW. * libsupc++/del_op.cc: Adjust. * libsupc++/del_opv.cc: Likewise. * libsupc++/del_opnt.cc: Likewise. * libsupc++/del_opvnt.cc: Likewise. * libsupc++/new_op.cc: Likewise. * libsupc++/new_opv.cc: Likewise. * libsupc++/new_opnt.cc: Likewise. * libsupc++/new_opvnt.cc: Likewise. * testsuite/18_support/50594.cc: New. * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line number. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179863 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-11 Emil Wojak <emil@wojak.eu>paolo2011-10-112-2/+9
| | | | | | | | | PR c++/50661 * include/bits/stl_algobase.h (equal): Compare arrays of pointers too with memcmp. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179801 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-10 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-10-1010-90/+144
| | | | | | | | | | | | | | | | PR libstdc++/49818 * config/abi/pre/gnu.ver (CXXABI_1.3.6): Add symbols. * testsuite/util/testsuite_abi.cc: Same. * libsupc++/unwind-cxx.h: Move required eh API... * libsupc++/cxxabi.h: ... to here. Add required forward declarations. Use _GLIBCXX_NOTHROW. * libsupc++/pure.cc (__cxa_deleted_virtual): Add. * libsupc++/eh_alloc.cc: Use _GLIBCXX_NOTHROW. * libsupc++/eh_catch.cc: Same. * libsupc++/eh_globals.cc: Same. * libsupc++/eh_type.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179769 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-07 Jonathan Wakely <jwakely.gcc@gmail.com>paolo2011-10-072-1/+10
| | | | | | | | * testsuite/util/testsuite_allocator.h (uneq_allocator): Add propagate_on_container_swap typedef for C++0x testing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179665 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-06 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-10-068-39/+77
| | | | | | | | | | | | | | | * testsuite/27_io/ios_base/cons/assign_neg.cc: Tidy dg- directives, for C++0x testing too. * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise. * testsuite/ext/pb_ds/example/hash_resize_neg.cc: Likewise. * testsuite/24_iterators/istreambuf_iterator/requirements/ base_classes.cc: Adjust for C++0x testing. * testsuite/ext/codecvt/char-1.cc: Avoid warnings in C++0x mode. * testsuite/ext/codecvt/char-2.cc: Likewise. * testsuite/ext/codecvt/wchar_t.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179616 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-05 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-10-062-1/+9
| | | | | | | | * include/ext/pod_char_traits.h: Avoid warnings in C++0x mode when int_type is unsigned. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179587 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-04 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-10-047-34/+119
| | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/49561 * include/bits/stl_list.h (_List_base<>::_List_impl::_M_size): Add in C++0x mode. (_List_base<>::_List_impl, _List_base<>::_M_get_node, _List_base<>::_M_put_node, _List_base<>::_List_base(_List_base&&), list<>::size, list<>::swap, list<>::splice): Use it. (operator==(const list<>&, const list<>&)): Rewrite in C++0x mode. * include/bits/list.tcc (list<>::erase): Likewise. (list<>::merge): Adjust in C++0x mode. * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Adjust dg-error line number. * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_2_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179528 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-04 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-10-042-1/+6
| | | | | | | | | * testsuite/20_util/bind/48698.cc (g): Fix return type, avoid -Wall warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179526 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-04 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-10-049-6/+109
| | | | | | | | | | | | | | | | | | | * include/ext/alloc_traits.h (__alloc_traits::max_size): Define. (__alloc_traits::rebind): Define. * include/bits/stl_vector.h: Use them. * testsuite/util/testsuite_allocator.h (SimpleAllocator): Define. * testsuite/23_containers/vector/allocator/minimal.cc: New. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179523 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-03 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-10-032-2/+9
| | | | | | | | * testsuite/20_util/pointer_traits/pointer_to.cc: Define equality operator and use. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179473 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-03 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-10-033-28/+51
| | | | | | | | | | * include/bits/hashtable.h (_Hashtable<>::insert(value_type&&), insert(const_iterator, value_type&&)): Don't define here... * include/bits/unordered_set.h (__unordered_set<>, __unordered_multiset<>): ... define here instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179464 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/35722jason2011-10-022-4/+10
| | | | | | | | | | | | | | | | | | | | Implement N2555 (expanding pack expansion to fixed parm list) * pt.c (coerce_template_parms): Allow expanding a pack expansion to a fixed-length argument list. (unify_pack_expansion): Handle explicit args properly. (unify) [TREE_VEC]: Handle pack expansions here. [TYPE_ARGUMENT_PACK]: Not here. (tsubst_pack_expansion): Don't try to do partial substitution. (pack_deducible_p): New. (fn_type_unification): Use it. (find_parameter_packs_r): Take the TYPE_MAIN_VARIANT of a type parameter. (check_non_deducible_conversion): Split from type_unification_real. (unify_one_argument): Split from type_unification_real... (unify_pack_expansion): ...and here. Drop call_args_p parm. (type_unification_real, unify, more_specialized_fn): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179436 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-10-01 François Dumont <fdumont@gcc.gnu.org>fdumont2011-10-013-2/+8
| | | | | | | | | | * include/debug/vector (vector<>::erase(iterator, iterator): Check iterators equality using normal iterators. * include/debug/deque (deque<>::erase(iterator, iterator): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179414 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-29 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-292-4/+7
| | | | | | | | | * include/bits/hashtable.h (_Hashtable<>::_Hashtable(_Hashtable&&)): Remove noexcept from declaration too. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179360 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-27 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-09-28194-1492/+9076
| | | | | | | | | | | | | | * doc/html/*: Regenerate. * doc/Makefile.am: Un-nest the ext output directory. * doc/Makefile.in: Regenerate. * spine.xml: Remove authors, add abstract for short contents. Rename to index.html for html output. * manual/spine.xml: Authors here, manual starts with index.html. * api.xml: Update. * faq.xml: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179304 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-27 Marcus Shawcroft <marcus.shawcroft@arm.com>jye22011-09-272-1/+9
| | | | | | | | | * libsupc++/tinfo.cc (type_info::operator==): Test __name instead of name(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179236 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-26 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-279-13/+119
| | | | | | | | | | | | | | | | PR libstdc++/50529 * include/bits/vector.tcc (vector<>::erase(iterator, iterator)): Fix to do nothing if the range is empty. * include/bits/stl_bvector.h: Likewise. * include/bits/deque.tcc: Likewise. * include/debug/vector: Adjust. * include/debug/deque: Likewise. * testsuite/23_containers/vector/modifiers/erase/50529.cc: New. * testsuite/23_containers/deque/modifiers/erase/50529.cc: Likewise. * testsuite/23_containers/deque/modifiers/erase/3.cc: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179234 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-26 Benjamin Kosnik <bkoz@redhat.combkoz2011-09-279-74/+126
| | | | | | | | | | | | | | | | | | Jonathan Wakely <jwakely.gcc@gmail.com> PR libstdc++/48698 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Set libtool_VERSION here. * configure.ac: Move AC_SUBST of libtool_VERSION past call to GLIBCXX_ENABLE_SYMVERS. * configure: Regenerate. * include/bits/c++config: Use __7 as versioned namespace name. * config/abi/pre/gnu-versioned-namespace.ver: Change mangling as per above. * include/c_global/cwchar: Adjust nested namespaces. * testsuite/20_util/bind/48698.cc: Add test case. * testsuite/ext/profile/mutex_extensions_neg.cc: Change line number. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179221 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-25 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-254-10/+14
| | | | | | | | | | | | | | | | | Revert (no longer necessary post r179130): 2010-04-27 Fabien Chêne <fabien.chene@gmail.com> * testsuite/util/testsuite_error.h: Add empty default constructor to __gnu_test::test_category and __gnu_test::test_derived_category. * src/future.cc: Add empty default constructor to future_error_category. * src/system_error.cc: Add default ctor to generic_error_category and system_error_category. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179172 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-24 John Salmon <john.salmon@deshaw.com>paolo2011-09-242-2/+7
| | | | | | | | PR libstdc++/50510 * include/bits/random.tcc (seed_seq::generate): Fix computation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179149 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-24 John Salmon <john.salmon@deshaw.com>paolo2011-09-242-2/+7
| | | | | | | | PR libstdc++/50509 * include/bits/random.tcc (seed_seq::generate): Fix computation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179144 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-21 Benjamin Kosnik <bkoz@redhat.combkoz2011-09-213-12/+17
| | | | | | | * doc/Makefile.am (stamp-epub-docbook): Fix image directory location. * doc/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179066 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-21 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-2121-143/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/limits.cc: Replace everywhere __int128_t -> __int128, and __uint128_t -> unsigned __int128. * include/std/type_traits: Likewise. * include/std/limits: Likewise. * testsuite/18_support/numeric_limits/dr559.cc: Likewise. * testsuite/18_support/numeric_limits/lowest.cc: Likewise. * testsuite/18_support/numeric_limits/40856.cc: Likewise. * testsuite/18_support/numeric_limits/max_digits10.cc: Likewise. * testsuite/util/testsuite_common_types.h: Likewise. * testsuite/20_util/make_signed/requirements/typedefs-1.cc: Likewise. * testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise. * testsuite/20_util/is_floating_point/value.cc: Likewise. * testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: Likewise. * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise. * testsuite/20_util/is_signed/value.cc: Likewise. * testsuite/20_util/is_unsigned/value.cc: Likewise. * testsuite/20_util/is_integral/value.cc: Likewise. * config/abi/pre/gnu.ver: Likewise. * acinclude.m4: Likewise. * configure: Regenerate. * config.h.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179044 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-19 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-1918-28/+359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/40856 * include/std/limits (numeric_limits<__int128_t>, numeric_limits<__uint128_t>): Add. * src/limits.cc:Define. * config/abi/pre/gnu.ver: Export. * include/ext/typelist.h (_GLIBCXX_TYPELIST_CHAIN16, 20): Add. * testsuite/util/testsuite_common_types.h (integral_types_gnu): Add (limits_tl): Use it. * testsuite/18_support/numeric_limits/requirements/ constexpr_functions.cc: Likewise. * testsuite/18_support/numeric_limits/40856.cc: New. * testsuite/18_support/numeric_limits/dr559.cc: Extend. * testsuite/18_support/numeric_limits/lowest.cc: Likewise. * testsuite/18_support/numeric_limits/max_digits10.cc: Likewise. * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust dg-error line numbers. * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise. * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Likewise. * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise. * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc: Likewise. * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc: Likewise. * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178969 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-17 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-1719-22/+450
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/50441 * acinclude.m4 ([GLIBCXX_ENABLE_INT128_FLOAT128]): Add. * configure.ac: Call it. * include/std/type_traits (__is_integral_helper<__int128_t>, __is_integral_helper<__uint128_t>, __is_floating_point_helper<__float128>, __make_unsigned<__int128_t>, __make_signed<__uint128_t>): Add. * testsuite/20_util/make_signed/requirements/typedefs-1.cc: Extend. * testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise. * testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: Likewise. * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise. * testsuite/20_util/is_signed/value.cc: Likewise. * testsuite/20_util/is_unsigned/value.cc: Likewise. * testsuite/20_util/is_integral/value.cc: Likewise. * testsuite/20_util/is_floating_point/value.cc: New. * testsuite/20_util/is_floating_point/requirements/typedefs.cc: Likewise. * testsuite/20_util/is_floating_point/requirements/ explicit_instantiation.cc: Likewise. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust dg-error line numbers. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. * configure: Regenerate. * config.h.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178933 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-17 François Dumont <fdumont@gcc.gnu.org>fdumont2011-09-173-2/+87
| | | | | | | | | | | * include/bits/hashtable.h (_Hashtable<>::__rehash_policy(const _RehashPolicy&)): Commit the modification of the policy only if no exception occured. * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178927 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-16 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-1633-20/+1052
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/23_containers/array/comparison_operators/ less_or_equal.cc: New. * testsuite/23_containers/array/comparison_operators/ greater_or_equal.cc: Likewise. * testsuite/23_containers/array/comparison_operators/less.cc: Likewise. * testsuite/23_containers/array/comparison_operators/equal.cc: Likewise. * testsuite/23_containers/array/comparison_operators/not_equal.cc: Likewise. * testsuite/23_containers/array/comparison_operators/greater.cc: Likewise. * testsuite/23_containers/array/iterators/end_is_one_past.cc: Likewise. * testsuite/23_containers/array/capacity/empty.cc: Likewise. * testsuite/23_containers/array/capacity/max_size.cc: Likewise. * testsuite/23_containers/array/capacity/size.cc: Likewise. * testsuite/23_containers/array/tuple_interface/tuple_element.cc: Likewise. * testsuite/23_containers/array/tuple_interface/tuple_size.cc: Likewise. * testsuite/23_containers/array/element_access/at_out_of_range.cc: Likewise. * testsuite/23_containers/array/element_access/back.cc: Likewise. * testsuite/23_containers/array/element_access/front.cc: Likewise. * testsuite/23_containers/array/element_access/data.cc: Likewise. * testsuite/23_containers/array/cons/aggregate_initialization.cc: Likewise. * testsuite/23_containers/array/requirements/zero_sized_arrays.cc: Likewise. * testsuite/23_containers/array/requirements/contiguous.cc: Likewise. * testsuite/23_containers/array/requirements/member_swap.cc: Likewise. * testsuite/23_containers/array/specialized_algorithms/swap.cc: Likewise. * testsuite/23_containers/array/constexpr_get.cc: Move... * testsuite/23_containers/array/tuple_interface/constexpr_get.cc: ... here. * testsuite/23_containers/array/requirements/get.cc: Move... * testsuite/23_containers/array/tuple_interface/get: ... here. * testsuite/23_containers/array/at_neg.cc: Move... * testsuite/23_containers/array/element_access: ... here. * testsuite/23_containers/array/requirements/constexpr_functions.cc: Move... * testsuite/23_containers/array/capacity: ... here. * testsuite/23_containers/array/requirements/ constexpr_element_access.cc: Move... * testsuite/23_containers/array/element_access: ... here. * testsuite/20_util/duration/cons/1_neg.cc: Avoid -Wall warnings. * testsuite/20_util/tuple/creation_functions/constexpr.cc: Likewise. * testsuite/20_util/pair/make_pair/constexpr.cc: Likewise. * testsuite/20_util/time_point/nonmember/constexpr.cc: Likewise. * testsuite/23_containers/bitset/operations/constexpr.cc: Likewise. * testsuite/20_util/duration/cons/1_neg.cc: Discard bogus warning. * testsuite/20_util/forward/1_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178911 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-15 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-164-13/+18
| | | | | | | | | | | | * include/std/tuple (make_tuple, forward_as_tuple): Declare constexpr. (_Tuple_impl<>::_Tuple_impl(_Tuple_impl<>&&)): Likewise. * testsuite/20_util/tuple/creation_functions/constexpr.cc: Enable make_tuple test. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-warning line number. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178904 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-14 François Dumont <fdumont@gcc.gnu.org>fdumont2011-09-144-23/+237
| | | | | | | | | | | | | | | | | | | Paolo Carlini <paolo.carlini@oracle.com> * include/bits/hashtable.h (_Hashtable<>::_M_rehash): Take and restore hash policy _M_prev_resize on exception. (_Hashtable<>::_M_insert_bucket): Capture hash policy next resize before using it and use latter method to have it restored on exception. (_Hashtable<>::_M_insert(_Arg&& __v, std::false_type): Likewise. (_Hashtable<>::insert(_InputIterator, _InputIterator): Likewise. (_Hashtable<>::rehash): Likewise. * testsuite/23_containers/unordered_set/insert/hash_policy.cc: New. * testsuite/23_containers/unordered_multiset/insert/hash_policy.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178861 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-13 Paul Brook <paul@codesourcery.com>pbrook2011-09-134-35/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/ * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. (ARM_TARGET2_DWARF_FORMAT): Provide default definition. * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define. * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define. * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define. * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h. * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h. * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code enabling unwind tables. (c6x_debug_unwind_info): New function. (TARGET_ARM_EABI_UNWINDER): Define. (TARGET_DEBUG_UNWIND_INFO): Define. * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define. (TARGET_EXTRA_CFI_SECTION): Remove. * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set. * ginclude/unwind-arm-common.h: New file. libgcc/ * config.host (tic6x-*-*): Add c6x/t-c6x-elf. Set unwind_header. * unwind-c.c (PERSONALITY_FUNCTION): Use UNWIND_POINTER_REG. * unwind-arm-common.inc: New file. * config/arm/unwind-arm.c: Use unwind-arm-common.inc. * config/arm/unwind-arm.h: Use unwind-arm-common.h. (_GLIBCXX_OVERRIDE_TTYPE_ENCODING): Define. * config/c6x/libunwind.S: New file. * config/c6x/pr-support.c: New file. * config/c6x/unwind-c6x.c: New file. * config/c6x/unwind-c6x.h: New file. * config/c6x/t-c6x-elf: New file. libstdc++-v3/ * libsupc++/eh_arm.cc (__cxa_end_cleanup): Add C6X implementation. * libsupc++/eh_call.cc (__cxa_call_unexpected): Set rtti_base. * libsupc++/eh_personality.cc (NO_SIZE_OF_ENCODED_VALUE): Remove __ARM_EABI_UNWINDER__ check. (parse_lsda_header): Check _GLIBCXX_OVERRIDE_TTYPE_ENCODING. (get_ttype_entry): Use generic implementation on ARM EABI. (check_exception_spec): Use _Unwind_decode_typeinfo_ptr and UNWIND_STACK_REG. (PERSONALITY_FUNCTION): Set ttype_base. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178808 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-12 Daniel Krugler <daniel.kruegler@googlemail.com>paolo2011-09-139-81/+193
| | | | | | | | | | | | | | | | | | | | | | | | Paolo Carlini <paolo.carlini@oracle.com> * include/std/tuple (_Head_base<>::_M_head, _Head_base<>::_M_tail, _Tuple_impl<>::_M_head, _Tuple_impl<>::_M_tail): Change to static constexpr functions; adjust everywhere. (__get_helper, get): Declare constexpr all three overloads. (tuple_cat): Declare constexpr; use late return type to improve error messages. * include/std/utility (__pair_get<>::__get, __pair_get<>::__move_get, __pair_get<>::__const_get, get): Declare all constexpr. * include/std/array (get): Likewise. * testsuite/20_util/tuple/creation_functions/constexpr.cc: Re-enable tuple_cat test. * testsuite/23_containers/array/constexpr_get.cc: New. * testsuite/20_util/tuple/element_access/constexpr_get.cc: Likewise. * testsuite/20_util/pair/constexpr_get.cc: Likewise. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error line number. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178799 138bc75d-0d04-0410-961f-82ee72b054a4
* * call.c (convert_class_to_reference)jason2011-09-122-2/+7
| | | | | | | (convert_class_to_reference_1): Remove. (reference_binding): Use build_user_type_conversion_1 instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178789 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-11 Daniel Krugler <daniel.kruegler@googlemail.com>paolo2011-09-119-149/+358
| | | | | | | | | | | | | | | | | | | | PR libstdc++/50159 * include/std/tuple (tuple_cat): Reimplement according to the resolution of LWG 1385. * include/std/type_traits: Define __and_ and __or_ for zero arguments too; minor tweaks. * testsuite/20_util/tuple/creation_functions/tuple_cat.cc: New. * testsuite/20_util/tuple/creation_functions/constexpr.cc: Disable for now tuple_cat test. * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error line numbers. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * doc/xml/manual/status_cxx200x.xml: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178770 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-09 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-105-25/+32
| | | | | | | | | | * include/std/tuple: Use everywhere std::size_t... instead of int... * include/std/functional: Likewise. * include/std/scoped_allocator: Likewise. * include/bits/stl_pair.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178746 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-09 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-083-1/+42
| | | | | | | | | | | PR libstdc++/50336 * include/bits/streambuf_iterator.h (class istreambuf_iterator): Implement LWG 445 in C++0x mode. * testsuite/24_iterators/istreambuf_iterator/requirements/dr445.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178713 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/33255 - Support -Wunused-local-typedefs warningdodji2011-09-084-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/ * c-decl.c (lookup_name): Use the new maybe_record_typedef_use. (pushdecl): Use the new record_locally_defined_typedef. (store_parm_decls): Allocate cfun->language. (finish_function): Use the new maybe_warn_unused_local_typedefs, and free cfun->language. (c_push_function_context): Allocate cfun->language here only if needed. (c_pop_function_context): Likewise, mark cfun->language for collection only when it should be done. * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes. * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new maybe_record_local_typedef_use. gcc/c-family * c-common.h (struct c_language_function::local_typedefs): New field. (record_locally_defined_typedef, maybe_record_typedef_use) (maybe_warn_unused_local_typedefs): Declare new functions. * c-common.c (record_locally_defined_typedef) (maybe_record_typedef_use) (maybe_warn_unused_local_typedefs): Define new functions. * c.opt: Declare new -Wunused-local-typedefs flag. gcc/cp * name-lookup.c (pushdecl_maybe_friend_1): Use the new record_locally_defined_typedef. * decl.c (finish_function): Use the new maybe_warn_unused_local_typedefs. (grokfield): Use the new record_locally_defined_typedef. * parser.c (lookup_name): Use the new maybe_record_typedef_use. gcc/doc/ * invoke.texi: Update documentation for -Wunused-local-typedefs. gcc/testsuite/ * g++.dg/warn/Wunused-local-typedefs.C: New test file. * c-c++-common/Wunused-local-typedefs.c: Likewise. libstdc++-v3/ * include/ext/bitmap_allocator.h (__detail::__mini_vector::__lower_bound): Remove unused typedef. * src/istream.cc (std::operator>>(basic_istream<char>& __in, basic_string<char>& __str)): Likewise. (std::getline): Likewise. * src/valarray.cc (__valarray_product): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178692 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-07 François Dumont <francois.cppdevs@free.fr>bkoz2011-09-082-0/+5
| | | | | | | | | * testsuite/23_containers/array/at.cc: Revert to... * testsuite/23_containers/array/at_neg.cc: ...this. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178670 138bc75d-0d04-0410-961f-82ee72b054a4
* * pt.c (type_unification_real): Correct complain arg for tsubstingjason2011-09-073-4/+9
| | | | | | default template args. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178651 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-06 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-09-078-42/+148
| | | | | | | | | | | | | | | | | | | | | * include/std/tuple (_Tuple_impl::_M_head, _M_tail): Mark constexpr. (tuple(tuple&&)): Same. (tuple(const tuple<_UElements...>& __in)): Same. (tuple(tuple<_UElements...>&& __in)): Same. (tuple_cat(const tuple<_TElements...>&, const tuple<_UElements...>&)): Same. (get): Same. * include/std/array: Consolidate array::data usage. * testsuite/23_containers/array/requirements/constexpr_functions.cc: Remove extra include. * testsuite/20_util/tuple/creation_functions/constexpr.cc: New. * testsuite/20_util/tuple/cons/constexpr-2.cc: Add tests. * testsuite/20_util/tuple/cons/constexpr-3.cc: Same. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178620 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-06 François Dumont <fdumont@gcc.gnu.org>paolo2011-09-062-23/+21
| | | | | | | | | | | | | Paolo Carlini <paolo.carlini@oracle.com> * include/bits/hashtable_policy.h (_Prime_rehash_policy:: _M_next_bkt): Cast _M_max_load_factor to long double. (_Prime_rehash_policy::_M_bkt_for_elements): Use _M_next_bkt. (_Prime_rehash_policy::_M_need_rehash): Likewise; cast all float quantities to long double. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178615 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-06 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-062-2/+15
| | | | | | | | | PR libstdc++/50257 * include/bits/hashtable_policy.h (_Prime_rehash_policy:: _M_next_bkt): Optimize for small argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178581 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-02 François Dumont <fdumont@gcc.gnu.org>paolo2011-09-022-7/+13
| | | | | | | | * testsuite/util/testsuite_allocator.h (tracker_allocator_counter:: allocate): Update allocation count only if allocation succeeded. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178486 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-02 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-022-16/+20
| | | | | | | * include/std/bitset: Trivial formatting fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178478 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-02 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-022-16/+28
| | | | | | | | | | | Marc Glisse <marc.glisse@normalesup.org> * include/std/bitset (_Base_bitset<>::_M_are_all_aux): Remove. (_Base_bitset<>::_M_are_all): Add. (bitset<>::all): Use the latter, improve implementation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178473 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-02 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-023-2/+115
| | | | | | | | | | | | Marc Glisse <marc.glisse@normalesup.org> PR libstdc++/50268 * include/std/bitset (struct _Sanitize_val): Add. (bitset<>::bitset(unsigned long long)): Fix. * testsuite/23_containers/bitset/cons/50268.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178463 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-09-01 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-09-0110-130/+22
| | | | | | | | | | | | | | | | | | | | | | * include/bits/hashtable.h (_Hashtable<>::_Hashtable(_Hashtable&&)): Remove noexcept, the move constructor allocates memory; rearrange the code in the body to consistently update __ht._M_rehash_policy before using _M_next_bkt on it. * include/debug/unordered_map: Adjust. * include/debug/unordered_set: Likewise. * include/profile/unordered_map: Likewise. * include/profile/unordered_set: Likewise. * testsuite/23_containers/unordered_map/cons/ noexcept_move_construct.cc: Remove. * testsuite/23_containers/unordered_set/cons/ noexcept_move_construct.cc: Likewise. * testsuite/23_containers/unordered_multimap/cons/ noexcept_move_construct.cc: Likewise. * testsuite/23_containers/unordered_multiset/cons/ noexcept_move_construct.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178423 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-31 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-08-312-1/+6
| | | | | | | | * include/std/chrono (operator*(const _Rep1&, const duration<>&)): Fix order of template parameters per LWG 2004. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178374 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-30 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-08-304-6/+43
| | | | | | | | | | * include/bits/stl_iterator.h (make_move_iterator): Implement DR2061. * testsuite/24_iterators/move_iterator/dr2061.cc: New. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-warning line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178330 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-30 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-08-302-6/+10
| | | | | | | * config/os/mingw32/error_constants.h: Fix commas. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178286 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-29 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-08-292-0/+34
| | | | | | * testsuite/20_util/duration/arithmetic/constexpr.cc: Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178265 138bc75d-0d04-0410-961f-82ee72b054a4