1. 05 Nov, 2019 21 commits
    • re PR target/92280 (gcc.target/i386/pr83008.c FAILs) · c265dfbf
      2019-11-05  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/92280
      	* match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
      	had a single use do not create a new CTOR.
      	* tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
      	BIT_FIELD_REF of a CTOR via GENERIC.
      
      From-SVN: r277832
      Richard Biener committed
    • IBM Z: gen-vect-11/32: Set min-vect-loop-bound param back to default · d9adca6e
      In the Z backend we still set min-vect-loop-bound to 2 to work around
      corner cases where awkward epilogue code gets generated in the
      vectorizer.  This has a particular bad impact when vectorizing loops
      with a low iteration count.  Due to this we do not vectorize the loop
      in gen-vect-11/32 - what actually is a pity.
      
      The patch sets min-vect-loop-bound back to the default value of 0 in
      order to enable vectorization.
      
      2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
      
      	* gcc.dg/tree-ssa/gen-vect-11.c: Add --param min-vect-loop-bound=0
      	for IBM Z.
      	* gcc.dg/tree-ssa/gen-vect-23.c: Likewise.
      
      From-SVN: r277831
      Andreas Krebbel committed
    • IBM Z: Fix testsuite useable_hw check · d8e5ca29
      This fixes various issues with the useable_hw check in s390.exp.  The
      check is supposed to verify whether a testcase can be run on the
      current hardware.
      
      - the test never returned true for -m31 because vzero is not available
        in ESA mode and -m31 defaults to -mesa
      - the missing v0 clobber on the vzero instruction made the check fail
        if the stack pointer got saved in f0
      - the lcbb instruction used for checking whether we are on a z13
        also requires vx.  Replace it with an instruction from the generic
        instruction set extensions.
      - no support for z14 and z15 so far
      
      gcc/testsuite/ChangeLog:
      
      2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
      
      	* gcc.target/s390/s390.exp
      	(check_effective_target_s390_useable_hw): Add inline asm for z14
      	and z15. Replace instruction for z13 with lochiz. Add register
      	clobbers. Check also for __zarch__ when doing the __VX__ test.
      
      From-SVN: r277830
      Andreas Krebbel committed
    • IBM Z: Use tree_fits_uhwi_p in vector_alignment hook · 76d8b4d1
      This fixes an ICE in gcc.dg/attr-vector_size.c testcase.
      
      gcc/ChangeLog:
      
      2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
      
      	* config/s390/s390.c (s390_vector_alignment): Check if the value
      	fits into uhwi before using it.
      
      From-SVN: r277829
      Andreas Krebbel committed
    • [ARM,testsuite] Skip tests incompatible with -mpure-code. · 30f1f974
      All these tests fail when using -mpure-code:
      * some force A or R profile
      * some use Neon
      * some use -fpic/-fPIC
      all of which are not supported by this option.
      
      2019-11-05  Christophe Lyon  <christophe.lyon@linaro.org>
      
      	* gcc.target/arm/attr-crypto.c: Skip if -mpure-code is used.
      	* gcc.target/arm/attr-neon-fp16.c: Likewise.
      	* gcc.target/arm/combine-cmp-shift.c: Likewise.
      	* gcc.target/arm/data-rel-1.c: Likewise.
      	* gcc.target/arm/data-rel-2.c: Likewise.
      	* gcc.target/arm/data-rel-3.c: Likewise.
      	* gcc.target/arm/ftest-armv7a-arm.c: Likewise.
      	* gcc.target/arm/ftest-armv7a-thumb.c: Likewise.
      	* gcc.target/arm/ftest-armv7r-arm.c: Likewise.
      	* gcc.target/arm/ftest-armv7r-thumb.c: Likewise.
      	* gcc.target/arm/ftest-armv7ve-arm.c: Likewise.
      	* gcc.target/arm/ftest-armv7ve-thumb.c: Likewise.
      	* gcc.target/arm/ftest-armv8a-arm.c: Likewise.
      	* gcc.target/arm/ftest-armv8a-thumb.c: Likewise.
      	* gcc.target/arm/lceil-vcvt_1.c: Likewise.
      	* gcc.target/arm/lfloor-vcvt_1.c: Likewise.
      	* gcc.target/arm/lround-vcvt_1.c: Likewise.
      	* gcc.target/arm/memset-inline-10.c: Likewise.
      	* gcc.target/arm/mod_2.c: Likewise.
      	* gcc.target/arm/mod_256.c: Likewise.
      	* gcc.target/arm/pr40657-1.c: Likewise.
      	* gcc.target/arm/pr44788.c: Likewise.
      	* gcc.target/arm/pr50305.c: Likewise.
      	* gcc.target/arm/pr51835.c: Likewise.
      	* gcc.target/arm/pr51915.c: Likewise.
      	* gcc.target/arm/pr52006.c: Likewise.
      	* gcc.target/arm/pr53187.c: Likewise.
      	* gcc.target/arm/pr58784.c: Likewise.
      	* gcc.target/arm/pr59575.c: Likewise.
      	* gcc.target/arm/pr59923.c: Likewise.
      	* gcc.target/arm/pr60650-2.c: Likewise.
      	* gcc.target/arm/pr60657.c: Likewise.
      	* gcc.target/arm/pr60663.c: Likewise.
      	* gcc.target/arm/pr67439_1.c: Likewise.
      	* gcc.target/arm/pr68620.c: Likewise.
      	* gcc.target/arm/pr7676.c: Likewise.
      	* gcc.target/arm/pr79239.c: Likewise.
      	* gcc.target/arm/pr81863.c: Likewise.
      	* gcc.target/arm/pragma_attribute.c: Likewise.
      	* gcc.target/arm/pragma_cpp_fma.c: Likewise.
      	* gcc.target/arm/require-pic-register-loc.c: Likewise.
      	* gcc.target/arm/thumb-ltu.c: Likewise.
      	* gcc.target/arm/thumb1-pic-high-reg.c: Likewise.
      	* gcc.target/arm/thumb1-pic-single-base.c: Likewise.
      	* gcc.target/arm/tlscall.c: Likewise.
      	* gcc.target/arm/unsigned-float.c: Likewise.
      	* gcc.target/arm/vrinta-ce.c: Likewise.
      
      From-SVN: r277828
      Christophe Lyon committed
    • Use more ggc_delete. · 9aca5960
      2019-11-05  Martin Liska  <mliska@suse.cz>
      
      	* symbol-summary.h: Use ggc_delete.
      
      From-SVN: r277827
      Martin Liska committed
    • [Aarch64] Fix vec_perm cost for thunderx2t99 · 5aef51c2
      Here is the one-liner that fixes the incorrect
      vec_perm cost for thunderx2t99 chip.
      With the patch applied 526.blender of CPU2017
      gets ~5% improvement with no measurable changes
      for other benchmarks.
      
      2019-11-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
      
      	* config/aarch64/aarch64.c (thunderx2t99_vector_cost):
      	Change vec_perm field to 10.
      
      From-SVN: r277826
      Anton Youdkevitch committed
    • * doc/install.texi: Further fix syntax for html generation · dd2f3208
      From-SVN: r277824
      Arnaud Charlet committed
    • Update coding style in symbol-summary.h. · dbe348c1
      2019-11-05  Martin Liska  <mliska@suse.cz>
      
      	* symbol-summary.h: Rename allocator to m_allocator and
      	add comment.
      
      From-SVN: r277823
      Martin Liska committed
    • re PR tree-optimization/92324 (ICE in expand_direct_optab_fn, at internal-fn.c:2890) · f340142b
      2019-11-05  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/92324
      	* tree-vect-loop.c (check_reduction_path): For MIN/MAX require
      	all signed or unsigned operations.
      
      	* gcc.dg/vect/pr92324-3.c: New testcase.
      
      From-SVN: r277822
      Richard Biener committed
    • hsa-brig.c: Include alloc-pool.h · a895e6d7
      
      	* hsa-brig.c: Include alloc-pool.h
      	* hsa-dump.c: Likewise.
      	* hsa-gen.c: Likewise.
      	* hse-regalloc.c: Likewise.
      	* ipa-hsa.c: Likewise.
      	* ipa-predicate.c: Likewise.
      	* ipa-reference.c: Likewise.
      	* ipa-sra.c: Likewise.
      	* omp-expand.c: Likewise.
      	* omp-general.c: Likewise.
      	* omp-low.c: Likewise.
      	* sumbol-summary.h (function_summary_base): Add allocator.
      	(function_summary<T *>::function_summary): Update construction.
      	(fast_function_summary<T *, V>::fast_function_summary): Likewise.
      	(call_summary_base): Add allcator.
      	(call_summary<T *>::call_summary): Update construction.
      	(fast_call_summary<T *, V>::fast_call_summary): Likewise.
      
      From-SVN: r277821
      Jan Hubicka committed
    • re PR tree-optimization/91945 (ICE: tree check: expected integer_cst, have… · f05b3724
      re PR tree-optimization/91945 (ICE: tree check: expected integer_cst, have var_decl in get_len, at tree.h:5837 since r274997)
      
      	PR tree-optimization/91945
      	* builtins.c (compute_objsize): For ARRAY_REF, only multiply off
      	by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
      	Formatting fix.
      
      	* gfortran.dg/pr91945.f90: New test.
      
      From-SVN: r277820
      Jakub Jelinek committed
    • re PR c++/92343 ([[likely]]/[[unlikely]] prevent method from being a constant expression) · 81012684
      	PR c++/92343
      	* constexpr.c (potential_constant_expression_1): Return true rather
      	than false for PREDICT_EXPR.
      
      	* g++.dg/cpp2a/attr-likely6.C: New test.
      
      From-SVN: r277819
      Jakub Jelinek committed
    • Move vrp_set_zero_nonzero_bits from tree-vrp.c into vr-values.c, and make it use… · 8f119c55
      Move vrp_set_zero_nonzero_bits from tree-vrp.c into vr-values.c, and make it use wi_set_zero_nonzero_bits.
      
      Move vrp_set_zero_nonzero_bits from tree-vrp.c into vr-values.c, and
      make it use wi_set_zero_nonzero_bits.  Remove the now redundant
      wide_int_range_set_zero_nonzero_bits.
      
      From-SVN: r277818
      Aldy Hernandez committed
    • Really add gcc/config/gcn/t-omp-device · 16a3a930
              gcc/
              * config/gcn/t-omp-device: New.
              Should have been part of Rev. 277797.
      
      From-SVN: r277817
      Tobias Burnus committed
    • Remove FIELD_DECL leftover. · db81e91c
      2019-11-05  Martin Liska  <mliska@suse.cz>
      
      	PR c++/92339
      	* fold-const.c (operand_compare::hash_operand): Remove
      	FIELD_DECL handling.
      2019-11-05  Martin Liska  <mliska@suse.cz>
      
      	PR c++/92339
      	* g++.dg/pr92339.C: New test.
      
      From-SVN: r277816
      Martin Liska committed
    • crontab: Disable snapshots from gcc-7-branch. · d50dbea1
      2019-10-05  Richard Biener  <rguenther@suse.de>
      
              * crontab: Disable snapshots from gcc-7-branch.
      
      From-SVN: r277815
      Richard Biener committed
    • decl.c (omp_declare_variant_finalize_one): Call declare_simd_adjust_this not just on the context... · 80d7f5d3
      	* decl.c (omp_declare_variant_finalize_one): Call
      	declare_simd_adjust_this not just on the context, but also on the
      	variant-id expression for methods.  Don't call
      	cp_get_callee_fndecl_nofold, call cp_get_callee and only if it is
      	safe cp_get_fndecl_from_callee.  Don't try to print as %qD
      	NULL in diagnostics.
      	* pt.c (tsubst_attribute): Handle "omp declare variant base"
      	attribute.
      	(tsubst_function_decl): Call omp_declare_variant_finalize
      	if there are any "omp declare variant base" attributes left.
      
      	* g++.dg/gomp/declare-variant-7.C: New test.
      	* g++.dg/gomp/declare-variant-8.C: New test.
      
      From-SVN: r277814
      Jakub Jelinek committed
    • Use value_range_base::equal_p in value_range_base::operator== so we can handle · e65deaff
      symbolics without dying.
      
      From-SVN: r277812
      Aldy Hernandez committed
    • Daily bump. · 5d293105
      From-SVN: r277810
      GCC Administrator committed
  2. 04 Nov, 2019 19 commits