1. 14 Dec, 2016 14 commits
  2. 13 Dec, 2016 21 commits
  3. 12 Dec, 2016 5 commits
    • re PR tree-optimization/78777 (ICE in mark_reachable_handlers, at tree-eh.c:3823… · 1697df8c
      re PR tree-optimization/78777 (ICE in mark_reachable_handlers, at tree-eh.c:3823 (aarch64-linux-gnu))
      
      	PR tree-optimization/78777
      	* gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
      	insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
      
      	* g++.dg/torture/pr78777.C: New test.
      
      From-SVN: r243584
      Jakub Jelinek committed
    • re PR other/78766 (GCC Awk scripts use the non-POSIX /^{/ regex) · 27ec2266
      	PR other/78766
      	* opt-functions.awk (opt_args): Use [{] instead of { in regexps.
      	Formatting fix.
      
      From-SVN: r243583
      Jakub Jelinek committed
    • PR middle-end/78622 - -Wformat-length/-fprintf-return-value incorrect with overflow/wrapping · 573aa7d4
      gcc/ChangeLog:
      
      	PR middle-end/78622
      	PR middle-end78606
      	* gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
      	rather than res.bounded.
      	(get_width_and_precision): Set precision to -1 when negative.
      	(adjust_range_for_overflow): New function.
      	(format_integer): Correct the handling of the space, plus, and pound
      	flags, and the special case of zero precision.
      	Always set res.bounded to true unless either precision or width
      	is specified and unknown.
      	Call adjust_range_for_overflow.
      	Avoid use zero as the shortest value when precision is specified
      	but unknown.
      	(format_directive): Remove vestigial quoting.  Always inform of
      	argument value or range when it's available.
      	(add_bytes): Correct the computation of boundrange used to
      	decide whether a warning is of a "maybe" or "defnitely" kind.
      
      gcc/testsuite/ChangeLog:
      
      	PR middle-end/78622
      	PR middle-end78606
      	* gcc.c-torture/execute/pr78622.c: New test.
      	* gcc.dg/tree-ssa/builtin-sprintf-2.c: Remove "benign" undefined
      	behavior inadvertently introduced in a previous commit.  Tighten
      	up final checking.
      	* gcc.dg/tree-ssa/builtin-sprintf-5.c: Rename macros for clarity.
      	Add test cases.
      	* gcc.dg/tree-ssa/builtin-sprintf-6.c: Add test cases.
      	* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Same.
      	* gcc.dg/tree-ssa/builtin-sprintf-warn-2.c: Same.
      	* gcc.dg/tree-ssa/builtin-sprintf-warn-3.c: Same.
      	* gcc.dg/tree-ssa/builtin-sprintf-warn-5.c: Same.
      	* gcc.dg/tree-ssa/builtin-sprintf-warn-6.c: Remove xfails and
      	add a final optimization check.
      	* gcc.dg/tree-ssa/builtin-sprintf.c: Add test cases.
      	* gcc.dg/tree-ssa/pr78622.c: New test.
      
      From-SVN: r243582
      Martin Sebor committed
    • re PR fortran/78392 (ICE in gfc_trans_auto_array_allocation, at fortran/trans-array.c:5979) · 068b961b
      2016-12-12  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/78392
      	* expr.c (gfc_is_constant_expr): Specification functions are not
      	compile-time constants. Update documentation (add reference to F08
      	standard), add a FIXME.
      	(external_spec_function): Add reference to F08 standard.
      	* resolve.c (resolve_fl_variable): Ditto.
      
      2016-12-12  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/78392
      	* gfortran.dg/constant_shape.f90: New test case.
      
      From-SVN: r243580
      Janus Weil committed
    • combine: Handle mode expanding zero_extracts in change_zero_ext. · e4d60406
      Example:
      
        (zero_extract:DI (reg:SI)
                         (const_int 24)
                         (const_int 0))
      
      -->
      
        (and:DI (subreg:DI (lshiftrt:SI (reg:SI) (const_int 8))
                           0)
                (const_int 16777215))
      
      
      2016-12-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
      
      	* combine.c (change_zero_ext): Handle mode expanding zero_extracts.
      
      From-SVN: r243578
      Dominik Vogt committed