Skip to content
Snippets Groups Projects
  1. Mar 06, 2019
    • Uros Bizjak's avatar
      encoding.c (DFmode): #undef before #define. · d135eeb2
      Uros Bizjak authored
      	* encoding.c (DFmode): #undef before #define.
      
      From-SVN: r269429
      d135eeb2
    • Peter Bergner's avatar
      re PR rtl-optimization/88845 (ICE in lra_set_insn_recog_data, at lra.c:1010) · 2713e5db
      Peter Bergner authored
      gcc/
      	PR rtl-optimization/88845
      	* config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
      	LRA.
      	* lra.c (remove_scratches_1): New function.
      	(remove_scratches): Use it.
      	(lra_emit_move): Likewise.
      
      gcc/testsuite/
      	PR rtl-optimization/88845
      	* gcc.target/powerpc/pr88845.c: New test.
      
      From-SVN: r269428
      2713e5db
    • Marek Polacek's avatar
      PR c++/87378 - bogus -Wredundant-move warning. · ec2de569
      Marek Polacek authored
      	* 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
      ec2de569
    • Jonathan Wakely's avatar
      Add feature test macro for bounded array traits · 46610940
      Jonathan Wakely authored
      	* 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
      46610940
    • Ian Lance Taylor's avatar
    • Edward Smith-Rowland's avatar
      PR libstdc++/86655 - std::assoc_legendre should not constrain · f29a1ef2
      Edward Smith-Rowland authored
      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
      f29a1ef2
    • Ville Voutilainen's avatar
      Rewrite variant, also PR libstdc++/85517 · 669a6fdc
      Ville Voutilainen authored
      * 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
      669a6fdc
    • Jonathan Wakely's avatar
      Add L suffix to __cpp_lib_char8_t value · 99447f70
      Jonathan Wakely authored
      	* include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
      	constant.
      	* testsuite/experimental/feat-char8_t.cc: Likewise.
      
      From-SVN: r269421
      99447f70
    • Jonathan Wakely's avatar
      Add C++20 Traits for [Un]bounded Arrays (P1357R1) · 28d85efb
      Jonathan Wakely authored
      	 * 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
      28d85efb
    • Martin Liska's avatar
      Charry pick libsanitizer r355488 (PR sanitizer/88684). · c24847a5
      Martin Liska authored
      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
      c24847a5
    • Jonathan Wakely's avatar
      Constexpr in std::pointer_traits (P1006R1) · d80f04d6
      Jonathan Wakely authored
      	* 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
      d80f04d6
    • Claudiu Zissulescu's avatar
      [ARC] Fix logic set UNALIGNED_ACCESS · 9f54ba8f
      Claudiu Zissulescu authored
      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
      9f54ba8f
    • Richard Biener's avatar
      re PR middle-end/89551 (Test case gcc.dg/uninit-pred-8_b.c fails after r269302) · 3050b357
      Richard Biener authored
      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
      3050b357
    • Martin Liska's avatar
      Use --coverage instead of -fprofile-arcs -ftest-coverage in documentation (PR gcov-profile/89577). · bb7c147f
      Martin Liska authored
      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
      bb7c147f
    • Martin Liska's avatar
      Ignore a param in check-params-in-docs.py · 08bc73f0
      Martin Liska authored
      2019-03-06  Martin Liska  <mliska@suse.cz>
      
      	* check-params-in-docs.py: Ignore a param.
      
      From-SVN: r269414
      08bc73f0
    • Ian Lance Taylor's avatar
      re PR go/89598 (go frontend fails to build against mpfr 2.4.2) · 956cb6d3
      Ian Lance Taylor authored
      	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
      956cb6d3
    • GCC Administrator's avatar
      Daily bump. · d77e9259
      GCC Administrator authored
      From-SVN: r269409
      d77e9259
  2. Mar 05, 2019
  3. Mar 04, 2019
    • Paolo Carlini's avatar
      re PR c++/84605 (internal compiler error: in xref_basetypes, at cp/decl.c:13818) · b65e6a99
      Paolo Carlini authored
      /cp
      2019-03-04  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/84605
      	* parser.c (cp_parser_class_head): Reject TYPE_BEING_DEFINED too.
      
      /testsuite
      2019-03-04  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/84605
      	* g++.dg/parse/crash69.C: New.
      
      From-SVN: r269378
      b65e6a99
    • Edward Smith-Rowland's avatar
      PR libstdc++/88996 Implement P0439R0 · 94014ee9
      Edward Smith-Rowland authored
      2019-03-04  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
      	PR libstdc++/88996 Implement P0439R0
      	Make std::memory_order a scoped enumeration.
      	* include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
      	add variables for the old enumerators.  Adjust calls.
      	* testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
      	* testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
      
      From-SVN: r269372
      94014ee9
    • Jakub Jelinek's avatar
      re PR c++/71446 (Incorrect overload resolution when using designated initializers) · f0103f7b
      Jakub Jelinek authored
      	PR c++/71446
      	* call.c (field_in_pset): New function.
      	(build_aggr_conv): Handle CONSTRUCTOR_IS_DESIGNATED_INIT correctly.
      
      	* g++.dg/cpp2a/desig12.C: New test.
      	* g++.dg/cpp2a/desig13.C: New test.
      
      From-SVN: r269371
      f0103f7b
Loading