1. 06 Mar, 2019 15 commits
    • PR c++/87378 - bogus -Wredundant-move warning. · ec2de569
      	* typeck.c (maybe_warn_pessimizing_move): See if the maybe-rvalue
      	overload resolution would actually succeed.
      
      	* g++.dg/cpp0x/Wredundant-move1.C (fn4): Drop dg-warning.
      	* g++.dg/cpp0x/Wredundant-move7.C: New test.
      
      From-SVN: r269427
      Marek Polacek committed
    • Add feature test macro for bounded array traits · 46610940
      	* include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
      	* include/std/version (__cpp_lib_bounded_array_traits): Likewise.
      	* testsuite/20_util/is_bounded_array/value.cc: Check for macro.
      	* testsuite/20_util/is_unbounded_array/value.cc: Likewise.
      
      From-SVN: r269426
      Jonathan Wakely committed
    • PR libstdc++/86655 - std::assoc_legendre should not constrain · f29a1ef2
      2019-03-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
      	PR libstdc++/86655 - std::assoc_legendre should not constrain
      	the value of m (or x).
      	* include/tr1/legendre_function.tcc (__assoc_legendre_p,
      	__sph_legendre): If degree > order Don't throw, return 0.
      	(__legendre_p, __assoc_legendre_p): Don't constrain x either.
      	* testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
      	* testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
      	* testsuite/tr1/5_numerical_facilities/special_functions/
      	02_assoc_legendre/pr86655.cc: New test.
      	* testsuite/tr1/5_numerical_facilities/special_functions/
      	22_sph_legendre/pr86655.cc: New test.
      
      From-SVN: r269423
      Edward Smith-Rowland committed
    • Rewrite variant, also PR libstdc++/85517 · 669a6fdc
      * include/std/variant (__do_visit): New.
      (__variant_cast): Likewise.
      (__variant_cookie): Likewise.
      (__erased_*): Remove.
      (_Variant_storage::_S_vtable): Likewise.
      (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
      (_Variant_storage::__M_reset): Adjust.
      (__variant_construct): New.
      (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
      __variant_construct.
      (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
      (_Move_ctor_base::__M_destructive_copy): New.
      (_Move_ctor_base::__M_destructive_move): Adjust to use
      __variant_construct.
      (_Copy_assign_base::operator=): Adjust to use __do_visit.
      (_Copy_assign_alias): Adjust to check both copy assignment
      and copy construction for triviality.
      (_Move_assign_base::operator=): Adjust to use __do_visit.
      (_Multi_array): Add support for visitors that accept and return
      a __variant_cookie.
      (__gen_vtable_impl::_S_apply_all_alts): Likewise.
      (__gen_vtable_impl::_S_apply_single_alt): Likewise.
      (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
      a __variant_cookie temporary for a variant that is valueless and..
      (__gen_vtable_impl::__visit_invoke): ..adjust here.
      (__gen_vtable::_Array_type): Conditionally make space for
      the __variant_cookie visitor case.
      (__variant_construct_by_index): New.
      (get_if): Adjust to use std::addressof.
      (relops): Adjust to use __do_visit.
      (variant): Add __variant_cast and __variant_construct_by_index
      as friends.
      (variant::emplace): Use _M_reset() and __variant_construct_by_index
      instead of self-destruction.
      (variant::swap): Adjust to use __do_visit.
      (visit): Reimplement in terms of __do_visit.
      (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
      * testsuite/20_util/variant/compile.cc: Adjust.
      * testsuite/20_util/variant/run.cc: Likewise.
      
      From-SVN: r269422
      Ville Voutilainen committed
    • Add L suffix to __cpp_lib_char8_t value · 99447f70
      	* include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
      	constant.
      	* testsuite/experimental/feat-char8_t.cc: Likewise.
      
      From-SVN: r269421
      Jonathan Wakely committed
    • Add C++20 Traits for [Un]bounded Arrays (P1357R1) · 28d85efb
      	 * include/std/type_traits [C++20] (is_bounded_array)
      	 (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
      	 Define.
      	 * testsuite/20_util/is_bounded_array/requirements/
      	 explicit_instantiation.cc: New test.
      	 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
      	 test.
      	 * testsuite/20_util/is_bounded_array/value.cc: New test.
      	 * testsuite/20_util/is_unbounded_array/requirements/
      	 explicit_instantiation.cc: New test.
      	 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
      	 * test.
      	 * testsuite/20_util/is_unbounded_array/value.cc: New test.
      
      From-SVN: r269420
      Jonathan Wakely committed
    • Charry pick libsanitizer r355488 (PR sanitizer/88684). · c24847a5
      2019-03-06  Martin Liska  <mliska@suse.cz>
      
      	PR sanitizer/88684
      	* sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
      	(SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
      	* ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
      	Likewise.
      
      From-SVN: r269419
      Martin Liska committed
    • Constexpr in std::pointer_traits (P1006R1) · d80f04d6
      	* include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
      	Add constexpr.
      	* testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
      
      From-SVN: r269418
      Jonathan Wakely committed
    • [ARC] Fix logic set UNALIGNED_ACCESS · 9f54ba8f
      gcc/
      xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>
      
      	* config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
      	unaligned_access variable.
      	* config/arc/arc.c (arc_override_options): Set unaligned access
      	default on for HS CPUs.
      	* config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
      
      From-SVN: r269417
      Claudiu Zissulescu committed
    • re PR middle-end/89551 (Test case gcc.dg/uninit-pred-8_b.c fails after r269302) · 3050b357
      2019-03-06  Richard Biener  <rguenther@suse.de>
      
      	PR testsuite/89551
      	* gcc.dg/uninit-pred-8_b.c: Force logical-op-non-short-circuit
      	the way that makes the testcase PASS.
      
      From-SVN: r269416
      Richard Biener committed
    • Use --coverage instead of -fprofile-arcs -ftest-coverage in documentation (PR gcov-profile/89577). · bb7c147f
      2019-03-06  Martin Liska  <mliska@suse.cz>
      
      	PR gcov-profile/89577
      	* doc/gcov.texi: Prefer to use --coverage.
      	* doc/sourcebuild.texi: Likewise.
      
      From-SVN: r269415
      Martin Liska committed
    • Ignore a param in check-params-in-docs.py · 08bc73f0
      2019-03-06  Martin Liska  <mliska@suse.cz>
      
      	* check-params-in-docs.py: Ignore a param.
      
      From-SVN: r269414
      Martin Liska committed
    • re PR go/89598 (go frontend fails to build against mpfr 2.4.2) · 956cb6d3
      	PR go/89598
          compiler: use GMP_RNDN rather than MPFR_RNDN
          
          Missed one last time around.  This fixes the build with mpfr 2.4.2.
          
          Fixes https://gcc.gnu.org/PR89598
          
          Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/165420
      
      From-SVN: r269411
      Ian Lance Taylor committed
    • Daily bump. · d77e9259
      From-SVN: r269409
      GCC Administrator committed
  2. 05 Mar, 2019 20 commits
  3. 04 Mar, 2019 5 commits