summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3
Commit message (Collapse)AuthorAgeFilesLines
* PR libstdc++/55041redi2012-10-282-4/+21
| | | | | | | | * python/libstdcxx/v6/printers.py (Tr1UnorderedMapPrinter): Update to handle hashtable as member of unordered_map not base class. (Tr1UnorderedSetPrinter): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192894 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-27 François Dumont <fdumont@gcc.gnu.org>fdumont2012-10-275-124/+1230
| | | | | | | | | | | | | | | | | | | | | | * include/bits/unordered_map.h (unordered_map<>): Prefer aggregation to inheritance with _Hashtable. (unordered_multimap<>): Likewise. * include/bits/unordered_set.h (unordered_set<>(const unordered_set&)): Use default implementation. (unordered_set<>(unordered_set&&)): Likewise. (unordered_set<>::operator=(const unordered_set&)): Likewise. (unordered_set<>::operator=(unordered_set&&)): Likewise. (unordered_multiset<>(const unordered_multiset&)): Likewise. (unordered_multiset<>(unordered_multiset&&)): Likewise. (unordered_multiset<>::operator=(const unordered_multiset&)): Likewise. (unordered_multiset<>::operator=(unordered_multiset&&)): Likewise. * include/debug/unordered_map (operator==): Adapt. * include/profile/unordered_map (operator==): Adapt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192876 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-24 Daniel Krugler <daniel.kruegler@gmail.com>paolo2012-10-247-75/+80
| | | | | | | | | | | | | | | * include/std/type_traits (common_type): Implement LWG 2141. * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: Update. * testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise. * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: Likewise. * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: Likewise. * testsuite/20_util/common_type/requirements/typedefs-2.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192780 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-24 Haakan Younes <hyounes@google.com>paolo2012-10-243-20/+32
| | | | | | | | | | | | Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/55047 * include/bits/random.h (exponential_distribution<>::operator): Fix formula to std::log(result_type(1) - __aurng()). * include/bits/random.tcc: Likewise, everywhere. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192762 138bc75d-0d04-0410-961f-82ee72b054a4
* AArch64 [10/10]mshawcroft2012-10-231-0/+5
| | | | | | | | | | | | 2012-10-23 Yufeng Zhang <yufeng.zhang@arm.com> * config/cpu/aarch64/cxxabi_tweaks.h: New file. * configure.host: Enable aarch64. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192731 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-22 François Dumont <fdumont@gcc.gnu.org>fdumont2012-10-224-38/+1190
| | | | | | | | | | | * include/bits/unordered_set.h (unordered_set<>): Prefer aggregation to inheritance with _Hashtable. (unordered_multiset<>): Likewise. * include/debug/unordered_set (operator==): Adapt. * include/profile/unordered_set (operator==): Adapt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192695 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-22 Yufeng Zhang <yufeng.zhang@arm.com>redi2012-10-212-12/+23
| | | | | | | | | Jonathan Wakely <jwakely.gcc@gmail.com> * doc/xml/manual/configure.xml (--enable-clocale): Document the 'newlib' and 'darwin' options. Minor stylistic improvements. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192661 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-21 François Dumont <fdumont@gcc.gnu.org>fdumont2012-10-212-1/+6
| | | | | | | | * include/profile/map.h (map::emplace_hint): Remove invalid parenthesis. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192656 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/23_containers/bitset/45713.cc: Skip for mmix-*-*.hp2012-10-212-3/+8
| | | | | | | Tweak sizetype-related comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192647 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/scoped_allocator: Avoid badname.redi2012-10-202-10/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192629 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/xml/manual/status_cxx2011.xml: Update.redi2012-10-192-6/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192616 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/scoped_allocator (__outermost_alloc_traits): Define.redi2012-10-194-21/+412
| | | | | | | | | | (scoped_allocator_adaptor::destroy): Use it. (scoped_allocator_adaptor::construct): Likewise. Overload for piecewise construction of std::pair objects. * testsuite/20_util/scoped_allocator/2.cc: New. * doc/xml/manual/status_cxx2011.xml: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192613 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/forward_list.h: Add C++11 allocator support.redi2012-10-1810-32/+463
| | | | | | | | | | | | | * include/bits/forward_list.tcc: Likewise. * doc/xml/manual/status_cxx2011.xml: Update. * testsuite/23_containers/forward_list/allocator/copy.cc: New. * testsuite/23_containers/forward_list/allocator/copy_assign.cc: New. * testsuite/23_containers/forward_list/allocator/minimal.cc: New. * testsuite/23_containers/forward_list/allocator/move_assign.cc: New. * testsuite/23_containers/forward_list/allocator/noexcept.cc: New. * testsuite/23_containers/forward_list/allocator/swap.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192588 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-18 François Dumont <fdumont@gcc.gnu.org>fdumont2012-10-1810-3/+212
| | | | | | | | | | | | | | | | | | | | | | | | * include/debug/formatter.h (_Debug_msg_id): Add __msg_valid_load_factor. * include/debug/macros.h (__glibcxx_check_max_load_factor): New. * include/debug/unordered_set (unordered_set<>::max_load_factor(float)): Check max load factor is positive. (unordered_multiset<>::max_load_factor(float)): Likewise. * include/debug/unordered_map (unordered_map<>::max_load_factor(float)): Likewise. (unordered_multimap<>::max_load_factor(float)): Likewise. * testsuite/23_containers/unordered_map/debug/max_load_factor_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/ max_load_factor_neg.cc: New. * testsuite/23_containers/unordered_set/debug/max_load_factor_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/ max_load_factor_neg.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192575 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-17 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-10-1814-32/+177
| | | | | | | | | | | | | | | | | | | | | | | | * include/bits/move.h (move_if_noexcept): Mark constexpr. * include/std/array (front, back): Same. * include/std/chrono: Add comment. * include/std/tuple (__tuple_compare): Mark __eq, __less constexpr. (operator ==, <, >, !=, <=, >=): Same. * testsuite/20_util/forward/c_neg.cc: Adjust line numbers. * testsuite/20_util/forward/f_neg.cc: Same. * testsuite/20_util/move_if_noexcept/constexpr.cc: New. * testsuite/20_util/tuple/comparison_operators/constexpr.cc: New. * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add. * testsuite/23_containers/array/element_access/ constexpr_element_access.cc: Same. * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust line numbers. * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: Same. * testsuite/20_util/tuple/comparison_operators/35480_neg.cc: Temporarily add dg-excess-errors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192556 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-16 François Dumont <fdumont@gcc.gnu.org>fdumont2012-10-1634-28/+1168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/debug/formatter.h (_Debug_msg_id): Add __msg_bucket_index_oob. * include/debug/macros.h (__glibcxx_check_bucket_index): New. * include/debug/unordered_set (unordered_set<>::begin(size_type)): Add check on bucket index. (unordered_set<>::begin(size_type) const): Likewise. (unordered_set<>::cbegin(size_type) const): Likewise. (unordered_set<>::end(size_type)): Likewise. (unordered_set<>::end(size_type) const): Likewise. (unordered_set<>::cend(size_type) const): Likewise. (unordered_set<>::bucket_size(size_type)): Likewise. (unordered_multiset<>::begin(size_type)): Likewise. (unordered_multiset<>::begin(size_type) const): Likewise. (unordered_multiset<>::cbegin(size_type) const): Likewise. (unordered_multiset<>::end(size_type)): Likewise. (unordered_multiset<>::end(size_type) const): Likewise. (unordered_multiset<>::cend(size_type) const): Likewise. (unordered_multiset<>::bucket_size(size_type)): Likewise. * include/debug/unordered_map (unordered_map<>::begin(size_type)): Likewise. (unordered_map<>::begin(size_type) const): Likewise. (unordered_map<>::cbegin(size_type) const): Likewise. (unordered_map<>::end(size_type)): Likewise. (unordered_map<>::end(size_type) const): Likewise. (unordered_map<>::cend(size_type) const): Likewise. (unordered_map<>::bucket_size(size_type)): Likewise. (unordered_multimap<>::begin(size_type)): Likewise. (unordered_multimap<>::begin(size_type) const): Likewise. (unordered_multimap<>::cbegin(size_type) const): Likewise. (unordered_multimap<>::end(size_type)): Likewise. (unordered_multimap<>::end(size_type) const): Likewise. (unordered_multimap<>::cend(size_type) const): Likewise. (unordered_multimap<>::bucket_size(size_type)): Likewise. * testsuite/23_containers/unordered_map/debug/bucket_size_neg.cc: New. * testsuite/23_containers/unordered_map/debug/begin1_neg.cc: New. * testsuite/23_containers/unordered_map/debug/begin2_neg.cc: New. * testsuite/23_containers/unordered_map/debug/cbegin_neg.cc: New. * testsuite/23_containers/unordered_map/debug/end1_neg.cc: New. * testsuite/23_containers/unordered_map/debug/end2_neg.cc: New. * testsuite/23_containers/unordered_map/debug/cend_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/bucket_size_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/begin1_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/cbegin_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/end1_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/end2_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/cend_neg.cc: New. * testsuite/23_containers/unordered_set/debug/bucket_size_neg.cc: New. * testsuite/23_containers/unordered_set/debug/begin1_neg.cc: New. * testsuite/23_containers/unordered_set/debug/begin2_neg.cc: New. * testsuite/23_containers/unordered_set/debug/cbegin_neg.cc: New. * testsuite/23_containers/unordered_set/debug/end1_neg.cc: New. * testsuite/23_containers/unordered_set/debug/end2_neg.cc: New. * testsuite/23_containers/unordered_set/debug/cend_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/bucket_size_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/begin1_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/begin2_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/cbegin_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/end1_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/end2_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/cend_neg.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192512 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/doko2012-10-154-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-10-15 Matthias Klose <doko@ubuntu.com> * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU. * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi. gcc/testsuite/ 2012-10-15 Matthias Klose <doko@ubuntu.com> * lib/target-supports.exp (check_profiling_available): Match arm*-*-linux-* for ARM Linux/GNU. * g++.dg/torture/predcom-1.C: Match arm*-*-linux-* for ARM Linux/GNU. * gfortran.dg/enum_10.f90: Likewise. * gfortran.dg/enum_9.f90: Likewise. * gcc.target/arm/synchronize.c: Likewise. * g++.old-deja/g++.jason/enum6.C: Likewise. * g++.old-deja/g++.other/enum4.C: Likewise. * g++.old-deja/g++.law/enum9.C: Likewise. gcc/ada/ 2012-10-15 Matthias Klose <doko@ubuntu.com> * gcc-interface/Makefile.in: Match arm*-*-linux-*eabi* for ARM Linux/GNU. libgcc/ 2012-10-15 Matthias Klose <doko@ubuntu.com> * config.host: Match arm*-*-linux-* for ARM Linux/GNU. libstdc++-v3/ 2012-10-15 Matthias Klose <doko@ubuntu.com> * configure.host: Match arm*-*-linux-* for ARM Linux/GNU. * testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise. * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise. libjava/ 2012-10-15 Matthias Klose <doko@ubuntu.com> * configure.ac: Match arm*-*-linux-* for ARM Linux/GNU. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192475 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/gthr.m4: New. Define GCC_AC_THREAD_HEADER.kyukhin2012-10-1514-26/+83
| | | | | | | | | | | | | | | | | | | | | | * libgcc/configure: Regenerate. * libgcc/configure.ac: Replace code with GCC_AC_THREAD_HEADER use. * libstdc++-v3/Makefile.in: Regenerate. * libstdc++-v3/acinclude.m4: Replace code with GCC_AC_THREAD_HEADER use. * libstdc++-v3/configure: Regenerate. * libstdc++-v3/doc/Makefile.in: Regenerate. * libstdc++-v3/include/Makefile.am: Regenerate. * libstdc++-v3/include/Makefile.in: Rename variable. * libstdc++-v3/libsupc++/Makefile.in: Regenerate. * libstdc++-v3/po/Makefile.in: Regenerate. * libstdc++-v3/python/Makefile.in: Regenerate. * libstdc++-v3/src/Makefile.in: Regenerate. * libstdc++-v3/src/c++11/Makefile.in: Regenerate. * libstdc++-v3/src/c++98/Makefile.in: Regenerate. * libstdc++-v3/testsuite/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192458 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/54908jason2012-10-152-84/+73
| | | | | | | * libsupc++/atexit_thread.cc: Rewrite to keep the cleanup list with get/setspecific. Destroy the key on dlclose. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192449 138bc75d-0d04-0410-961f-82ee72b054a4
* Forgot the CL entry for the Hoyt and arcsine distributions.emsr2012-10-121-0/+29
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192404 138bc75d-0d04-0410-961f-82ee72b054a4
* dd the Hoyt and the arcsine distributions as extensions.emsr2012-10-1216-0/+1195
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192403 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert r192297.kyukhin2012-10-1213-32/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192394 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-12 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-112-22/+20
| | | | | | | | * include/bits/hashtable_policy.h: Revert libstdc++/53067 quick hacks thanks to the resolution of c++/51213. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192380 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-11 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-111-0/+4
| | | | | | | * testsuite/23_containers/bitset/45713.cc: Tweak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192358 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-11 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-111-4/+2
| | | | | | | * testsuite/23_containers/bitset/45713.cc: Tweak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192357 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-11 Daniel Krugler <daniel.kruegler@googlemail.com>paolo2012-10-111-0/+9
| | | | | | | | | | | | * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: Update / extend. * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: Likewise. * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192356 138bc75d-0d04-0410-961f-82ee72b054a4
* PR testsuite/54897hp2012-10-112-2/+11
| | | | | | | | * testsuite/23_containers/bitset/45713.cc: Skip for avr*-*-* cris*-*-* h8300*-*-* mcore*-*-* moxie*-*-*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192354 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-11 Daniel Krugler <daniel.kruegler@googlemail.com>paolo2012-10-113-27/+50
| | | | | | | | | | | | * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: Update / extend. * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: Likewise. * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192352 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix Solaris symbol versioning (PR libstdc++/54872)ro2012-10-112-0/+11
| | | | | | | | PR libstdc++/54872 * config/abi/pre/gnu.ver (GLIBCXX_3.4.11) [!__sun__ && !__svr4__]: Don't export _ZNSt12system_errorC*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192349 138bc75d-0d04-0410-961f-82ee72b054a4
* Add PR to previous ChangeLog entry.redi2012-10-101-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192336 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-10 Jack Howarth <howarth@bromo.med.uc.edu>redi2012-10-103-0/+17
| | | | | | | | | | Jonathan Wakely <jwakely.gcc@gmail.com> * config/os/bsd/darwin/os_defines.h: Define _GLIBCXX_USE_NANOSLEEP and _GLIBCXX_USE_SCHED_YIELD. * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192335 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-10 Mark Kettenis <kettenis@openbsd.org>redi2012-10-108-0/+293
| | | | | | | | | | | | | * configure.host (*-*-openbsd*) Set cpu_include_dir. * config/os/bsd/openbsd/ctype_base.h: New file. * config/os/bsd/openbsd/ctype_configure_char.cc: New file. * config/os/bsd/openbsd/ctype_inline.h: New file. * config/os/bsd/openbsd/os_defines.h: New file. * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Use newlib locale model for OpenBSD. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192334 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-10 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-104-18/+26
| | | | | | | | | | | * include/std/type_traits (__do_common_type_impl): Revert for now LWG 2141-related change. * testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise. * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192308 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix missing gthr-default.h issue on separate libstdc++ configurekyukhin2012-10-1013-12/+32
| | | | | | | | | | | | | | | | | | | | * libstdc++-v3/acinclude.m4: Define glibcxx_thread_h. * libstdc++-v3/include/Makefile.am: Use glibcxx_thread_h. * libstdc++-v3/Makefile.in: Regenerate. * libstdc++-v3/configure: Regenerate. * libstdc++-v3/doc/Makefile.in: Regenerate. * libstdc++-v3/include/Makefile.in: Regenerate. * libstdc++-v3/libsupc++/Makefile.in: Regenerate. * libstdc++-v3/po/Makefile.in: Regenerate. * libstdc++-v3/python/Makefile.in: Regenerate. * libstdc++-v3/src/Makefile.in: Regenerate. * libstdc++-v3/src/c++11/Makefile.in: Regenerate. * libstdc++-v3/src/c++98/Makefile.in: Regenerate. * libstdc++-v3/testsuite/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192297 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-09 Daniel Krugler <daniel.kruegler@googlemail.com>paolo2012-10-0915-71/+630
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/type_traits (common_time): Provide "SFINAE-friendly" implementation. (__success_type, __failure_type): Fix. * include/std/chrono (common_type): Likewise for the chrono::time_point specialization. * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: New. * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: Likewise. * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: Likewise. * testsuite/20_util/common_type/requirements/typedefs-1.cc: Adjust wrt LWG 2141. * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust dg-error line numbers. * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. * testsuite/20_util/result_of/sfinae_friendly_1.cc: Trivial stylistic tweaks. * testsuite/20_util/result_of/sfinae_friendly_2.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192276 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-09 Andrew MacLeod <amacleod@redhat.com>amacleod2012-10-092-1/+7
| | | | | | | | | | PR libstdc++/54861 * include/bits/atomic_base.h (atomic_signal_fence): Call __atomic_signal_fence instead of __atomic_thread_fence. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192268 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-09 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-10-092-1/+6
| | | | | | | * testsuite/20_util/specialized_algorithms/uninitialized_copy/808590.cc: Fix constant value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192265 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-0914-8/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/54869 * include/ext/random (simd_fast_mersenne_twister_engine): Provide only for little endian targets. * include/ext/random.tcc: Likewise. * config/cpu/i486/opt/ext/opt_random.h: Likewise. * testsuite/lib/libstdc++.exp (check_v3_target_little_endian): Add. * testsuite/lib/dg-options.exp (dg-require-little-endian): Add. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ operators/equal.cc: Use the latter. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ operators/serialize.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ operators/inequal.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/copy.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/seed1.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/seed2.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/default.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/ cons/seed_seq.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192256 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/54754redi2012-10-092-127/+49
| | | | | | | * include/parallel/compatibility.h: Use atomic built-ins when they are lock-free. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192240 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.7.uros2012-10-092-1/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192237 138bc75d-0d04-0410-961f-82ee72b054a4
* Support C++11 thread_local destructors.jason2012-10-086-1/+163
| | | | | | | | | | | | | gcc/cp/ * decl.c (get_thread_atexit_node): New. (register_dtor_fn): Use it for TLS. libstdc++-v3/ * libsupc++/cxxabi.h: Declare __cxa_thread_atexit. * libsupc++/atexit_thread.cc: New. * libsupc++/Makefile.am (nested_exception.lo): Add it. * config/abi/pre/gnu.ver: Add __cxa_thread_atexit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192210 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-07 Matthias Klose <doko@ubuntu.com>doko2012-10-071-0/+6
| | | | | | | | | * testsuite/28_regex/algorithms/match/basic: Remove empty directory. * testsuite/28_regex/algorithms/match/extended: Likewise. * testsuite/28_regex/algorithms/match: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192180 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-062-18/+7
| | | | | | | | | | | | | | | | | | | | | | | | PR c++/52764 * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS. * ginclude/stdint-gcc.h: In C++11 unconditionally define limit and constant macros. /testsuite 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52764 * g++.dg/cpp0x/stdint.C: New. /libstdc++-v3 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52764 * include/c_global/cstdint: Remove __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS related macros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192174 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-06 Joe Seymour <jseymour@codesourcery.com>paolo2012-10-062-2/+6
| | | | | | | * include/tr2/dynamic_bitset: Fix cxxabi_forced.h include path. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192154 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-05 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-10-0514-0/+191
| | | | | | | | | | | * testsuite/28_regex/algorithms/match: Rename to... * testsuite/28_regex/algorithms/regex_match: ...this. * testsuite/28_regex/basic_regex/regex.cc: Rename to... * testsuite/28_regex/basic_regex/ctors/basic/default.cc: ...this. * testsuite/util/testsuite_regex.h: New. * testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192146 138bc75d-0d04-0410-961f-82ee72b054a4
* cp/jakub2012-10-052-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cp-tree.h (SIZEOF_EXPR_TYPE_P): Define. * tree.c (cp_tree_equal): Handle SIZEOF_EXPR with SIZEOF_EXPR_TYPE_P. * mangle.c (write_expression): Likewise. * cxx-pretty-print.c (pp_cxx_unary_expression): Likewise. * error.c (dump_expr): Likewise. * parser.c (cp_parser_unary_expression): For sizeof call cxx_sizeof_or_alignof_{type,expr} just for diagnostics and return SIZEOF_EXPR with the operand. * pt.c (tsubst_copy, tsubst_copy_and_build): For SIZEOF_EXPR, call cxx_sizeof_or_alignof_{type,expr} for diagnostics, but return SIZEOF_EXPR with tsubsted operand. (value_dependent_expression_p): Handle SIZEOF_EXPR with SIZEOF_EXPR_TYPE_P. (instantiation_dependent_r): Likewise. * call.c (null_ptr_cst_p): Call maybe_constant_value for C++98. * semantics.c (finish_call_expr): Call sizeof_pointer_memaccess_warning if needed. (cxx_eval_constant_expression): Handle SIZEOF_EXPR. (potential_constant_expression_1): Remove early exit for C++98. Handle PROPERTY_REF. * decl.c (duplicate_decls): When redeclaring a builtin function, keep the merged decl builtin also if newdecl is a gnu_inline inline definition. (fold_sizeof_expr_r): New function. (compute_array_index_type): Fold SIZEOF_EXPRs in itype. * cp-gimplify.c (cp_genericize_r): Fold SIZEOF_EXPR. * typeck.c (cp_build_binary_op): For warn_for_sign_compare try harder using maybe_constant_value to get INTEGER_CSTs. * decl.c (stabilize_vla_size): Call pointer_set_destroy at the end. testsuite/ * g++.dg/torture/Wsizeof-pointer-memaccess1.C: New test. * g++.dg/torture/Wsizeof-pointer-memaccess2.C: New test. * g++.dg/warn/Wsign-compare-5.C: New test. * g++.dg/warn/Wsizeof-pointer-memaccess-1.C: New test. * g++.dg/warn/Wnull-conversion-1.C: For c++11 add dg-error. * g++.dg/ext/builtin30.C: New test. * g++.dg/ext/vla12.C: New test. * gcc.dg/builtins-85.c: New test. libstdc++-v3/ * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192141 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-05 Marc Glisse <marc.glisse@inria.fr>glisse2012-10-052-5/+19
| | | | | | | | | | | | PR libstdc++/54686 * include/c_global/cstdlib (abs(long long)): Define with __builtin_llabs when we have long long. (abs(long)): Use __builtin_labs. (abs(__int128)): Define when we have __int128. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192138 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-05 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-055-61/+13
| | | | | | | | | | | | * include/c_global/cstdlib: Remove redundant pasto code protected by __GXX_EXPERIMENTAL_CXX0X__. * include/c_global/cwctype: Likewise. * include/c_global/ccomplex: Remove uses of obsolete macro _GLIBCXX_INCLUDE_AS_TR1. * include/c_global/cfloat: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192137 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-05 Marc Glisse <marc.glisse@inria.fr>glisse2012-10-053-5/+52
| | | | | | | | | | | | | PR libstdc++/54686 * include/c_std/cstdlib (abs(long long)): Define with __builtin_llabs when we have long long. (abs(long)): Use __builtin_labs. (abs(__int128)): Define when we have __int128. * testsuite/26_numerics/headers/cstdlib/54686.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192132 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-10-03 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-10-046-31/+103
| | | | | | | | | | | | | | | | | | PR libstdc++/53248 * include/std/array (__array_traits<>): Add. (array<>): Allow for zero-size arrays of non default-constructible elements. * testsuite/23_containers/array/requirements/ non_default_constructible.cc: New. * testsuite/23_containers/array/requirements/zero_sized_arrays.cc: Adjust. * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192056 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud