1. 29 Aug, 2018 14 commits
  2. 28 Aug, 2018 22 commits
    • * fold-const.c (fold_binary_loc): Remove recently added assert. · 78e93935
      From-SVN: r263936
      Jeff Law committed
    • genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED to OP… · d0794d14
      genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED to OP parmeter of generated function.
      
              * genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED
              to OP parmeter of generated function.
      
      From-SVN: r263934
      Joern Rennecke committed
    • re PR middle-end/87009 (Can't find XOR pattern applying De Morgan sequentially) · fd8303a5
      	PR tree-optimization/87009
      	* match.pd: Add boolean optimizations.
      
      	PR tree-optimization/87009
      	* gcc.dg/pr87009.c: New test.
      
      From-SVN: r263931
      MCC CS committed
    • re PR middle-end/86631 (missing -Walloc-size-larger-than on ILP32 hosts) · 96c19db5
      gcc/testsuite/ChangeLog:
      
      	PR middle-end/86631
      	* g++.dg/Walloca1.C: Adjust.
      
      From-SVN: r263930
      Martin Sebor committed
    • PR middle-end/86631 - missing -Walloc-size-larger-than on ILP32 hosts · 0aaafa5e
      gcc/ChangeLog:
      
      	PR middle-end/86631
      	* calls.c (alloc_max_size): Treat HOST_WIDE_INT special.
      	* gimple-ssa-warn-alloca.c (adjusted_warn_limit): New function.
      	(pass_walloca::gate): Use it.
      	(alloca_call_type): Same.
      	(pass_walloca::execute): Same.
      	* stor-layout.c (layout_decl): Treat HOST_WIDE_INT special.
      
      gcc/testsuite/ChangeLog:
      
      	PR middle-end/86631
      	* g++.dg/Walloca1.C: Adjust.
      
      From-SVN: r263928
      Martin Sebor committed
    • PR libstdc++/87116 fix path::lexically_normal() handling of dot-dot · dd35da2c
      Previously the logic that turned "a/b/c/../.." into "a/" failed to
      preserve an empty path at the end of the iteration sequence, as required
      by the trailing slash. That meant the result didn't meet the class
      invariants, and that "a/b/c/d/../../.." would remove four components
      instead of the three that "../../.." should remove.
      
      	PR libstdc++/87116
      	* src/filesystem/std-path.cc (path::lexically_normal): When handling
      	a dot-dot filename, preserve an empty final component in the iteration
      	sequence.
      	[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use preferred-separator for
      	root-directory.
      	* testsuite/27_io/filesystem/path/generation/normal.cc: Add new tests
      	for more than two adjacent dot-dot filenames.
      	[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Replace slashes with
      	preferred-separator in expected normalized strings.
      
      From-SVN: r263922
      Jonathan Wakely committed
    • re PR c++/86546 (ICE on invalid: tree_class_check_failed()) · f30bafb7
      /cp
      2018-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/86546
      	* decl.c (finish_case_label): If the type is erroneous early
      	return error_mark_node.
      
      /testsuite
      2018-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/86546
      	* g++.dg/other/switch4.C: New.
      
      From-SVN: r263921
      Paolo Carlini committed
    • Fix version check for ATTRIBUTE_GCC_DUMP_PRINTF · 19784080
      gcc/ChangeLog:
      	* dumpfile.h (ATTRIBUTE_GCC_DUMP_PRINTF): Change version check on
      	GCC_VERSION for usage of "__gcc_dump_printf__" format from
      	>= 3005 to >= 9000.
      
      From-SVN: r263920
      David Malcolm committed
    • re PR tree-optimization/87124 (ICE have integer_cst in SSA_VAL, at… · 49aecbeb
      re PR tree-optimization/87124 (ICE have integer_cst in SSA_VAL, at tree-ssa-sccvn.c:462 while building 541.leela_r from SPEC2017)
      
      2018-08-28  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/87124
      	* tree-ssa-sccvn.c (vn_lookup_simplify_result): Guard against
      	constants before looking up avail.
      
      	* g++.dg/torture/pr87124.C: New testcase.
      
      From-SVN: r263918
      Richard Biener committed
    • re PR fortran/80477 ([OOP] Polymorphic function result generates memory leak) · 1312bb90
      2017-08-28  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/80477
      	* trans-expr.c (gfc_conv_procedure_call): Allocatable class
      	scalar results being passed to a derived type formal argument
      	are finalized if possible. Otherwise, rely on existing code for
      	deallocation. Make the deallocation of allocatable result
      	components conditional on finalization not taking place. Make
      	the freeing of data components after finalization conditional
      	on the data being NULL.
      	(gfc_trans_arrayfunc_assign): Change the gcc_assert to a
      	condition to return NULL_TREE.
      	(gfc_trans_assignment_1): If the assignment is class to class
      	and the rhs expression must be finalized but the assignment
      	is not marked as a polymorphic assignment, use the vptr copy
      	function instead of gfc_trans_scalar_assign.
      
      	PR fortran/86481
      	* trans-expr.c (gfc_conv_expr_reference): Do not add the post
      	block to the pre block if the expression is to be finalized.
      	* trans-stmt.c (gfc_trans_allocate): If the expr3 must be
      	finalized, load the post block into a finalization block and
      	add it right at the end of the allocation block.
      
      2017-08-28  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/80477
      	* gfortran.dg/class_result_7.f90: New test.
      	* gfortran.dg/class_result_8.f90: New test.
      	* gfortran.dg/class_result_9.f90: New test.
      
      	PR fortran/86481
      	* gfortran.dg/allocate_with_source_25.f90: New test.
      
      From-SVN: r263916
      Paul Thomas committed
    • re PR middle-end/87099 (internal compiler error: segmentation fault) · 2c8861b7
      	PR middle-end/87099
      	* calls.c (maybe_warn_nonstring_arg): Punt early if
      	warn_stringop_overflow is zero.  Don't call get_range_strlen
      	on 3rd argument, keep iterating until lenrng[1] is INTEGER_CST.
      	Swap comparison operands to have constants on rhs.  Only use
      	lenrng[1] if non-NULL and INTEGER_CST.  Don't uselessly
      	increment lenrng[0].
      
      	* gcc.dg/pr87099.c: New test.
      
      From-SVN: r263915
      Jakub Jelinek committed
    • Fix unguarded use of tree_to_shwi in tree-ssa-sccvn.c · 4ec4324d
      Fixes many testsuite failures for SVE.
      
      2018-08-28  Richard Sandiford  <richard.sandiford@arm.com>
      
      gcc/
      	* tree-ssa-sccvn.c (fully_constant_vn_reference_p): Fix unguarded
      	use of tree_to_shwi.  Remove duplicated test for the size being
      	a whole number of bytes.
      
      From-SVN: r263914
      Richard Sandiford committed
    • Add target selectors to slp-37.c (PR87078) · 463a9e0d
      This test was failing for Power 7 due to the lack of hw support
      for unaligned accesses.
      
      2018-08-28  Richard Sandiford  <richard.sandiford@arm.com>
      
      gcc/testsuite/
      	PR testsuite/87078
      	* gcc.dg/vect/slp-37.c: Restrict scan tests to vect_hw_misalign.
      
      From-SVN: r263913
      Richard Sandiford committed
    • re PR tree-optimization/87117 (ICE in… · 8e8bf292
      re PR tree-optimization/87117 (ICE in eliminate_dom_walker::eliminate_cleanup(bool) at gcc/gcc/tree-ssa-sccvn.c:5431 since r263875)
      
      2018-08-28  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/87117
      	* tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_cleanup):
      	Handle removed stmt without LHS (GIMPLE_NOP).
      
      From-SVN: r263912
      Richard Biener committed
    • re PR tree-optimization/87117 (ICE in… · f2b0062c
      re PR tree-optimization/87117 (ICE in eliminate_dom_walker::eliminate_cleanup(bool) at gcc/gcc/tree-ssa-sccvn.c:5431 since r263875)
      
      2018-08-28  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/87117
      	* tree-ssa-sccvn.c (fully_constant_vn_reference_p): Exclude
      	void which is is_gimple_reg_type by checking for COMPLETE_TYPE_P.
      
      	* gcc.dg/pr87117-1.c: New testcase.
      
      From-SVN: r263911
      Richard Biener committed
    • re PR tree-optimization/87117 (ICE in… · 7b3ca244
      re PR tree-optimization/87117 (ICE in eliminate_dom_walker::eliminate_cleanup(bool) at gcc/gcc/tree-ssa-sccvn.c:5431 since r263875)
      
      2018-08-28  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/87117
      	* tree-ssa-pre.c (compute_avail): Do not make expressions
      	with predicated values available.
      	(get_expr_value_id): Assert we do not run into predicated value
      	expressions.
      
      	* gcc.dg/pr87117-2.c: New testcase.
      
      From-SVN: r263910
      Richard Biener committed
    • re PR tree-optimization/87117 (ICE in… · 6df46f59
      re PR tree-optimization/87117 (ICE in eliminate_dom_walker::eliminate_cleanup(bool) at gcc/gcc/tree-ssa-sccvn.c:5431 since r263875)
      
      2018-08-28  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/87117
      	* tree-ssa-operands.c (add_stmt_operand): STRING_CST may
      	get virtual operands.
      	(get_expr_operands): Handle STRING_CST like other decls.
      
      	* gcc.dg/lvalue-5.c: New testcase.
      
      From-SVN: r263908
      Richard Biener committed
    • Update documentation of fndecl_built_in_p. · 36066262
      2018-08-28  Martin Liska  <mliska@suse.cz>
      
      	* tree.h: Update documentation of fndecl_built_in_p
      	functions.
      
      From-SVN: r263907
      Martin Liska committed
    • re PR tree-optimization/87110 ([9 Regresssion] tree check fail in to_wide, at tree.h:5523) · a1ae0cbd
      	PR tree-optimization/87110
      	* tree-ssa-dse.c (compute_trims): Handle non-constant
      	TYPE_SIZE_UNIT.
      
      	PR tree-optimization/87110
      	* gcc.c-torture/compile/pr87110.c: New test.
      
      From-SVN: r263906
      Jeff Law committed
    • PR tree-optimization/86914 - wrong code with strlen() of poor-man's flexible… · d1af2f66
      PR tree-optimization/86914 - wrong code with strlen() of poor-man's flexible array member plus offset
      
      gcc/ChangeLog:
      
      	PR tree-optimization/86914
      	* tree-ssa-strlen.c (maybe_set_strlen_range): Avoid MEM_REF.
      
      gcc/testsuite/ChangeLog:
      
      	PR tree-optimization/86914
      	* gcc.dg/strlenopt-57.c: New test.
      
      From-SVN: r263905
      Martin Sebor committed
    • Daily bump. · 37223543
      From-SVN: r263904
      GCC Administrator committed
    • PR tree-optimization/87112 - ICE in fold_binary_loc on strnlen of mixed integer types · 1583124e
      gcc/ChangeLog:
      
      	PR tree-optimization/87112
      	* builtins.c (expand_builtin_strnlen): Convert c_strlen result to
      	the type of the bound argument.
      
      gcc/testsuite/ChangeLog:
      
      	PR tree-optimization/87112
      	* gcc.dg/pr87112.c: New test.
      
      From-SVN: r263900
      Martin Sebor committed
  3. 27 Aug, 2018 4 commits