1. 09 Feb, 2016 6 commits
  2. 08 Feb, 2016 24 commits
  3. 07 Feb, 2016 4 commits
  4. 06 Feb, 2016 2 commits
  5. 05 Feb, 2016 4 commits
    • re PR tree-optimization/68541 (Path splitting causes if-conversion miss) · 8981d712
      	PR tree-optimization/68541
      	* gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
      	(count_stmts_in_block): New function.
      	(poor_ifcvt_candidate_code): Likewise.
      	(is_feasible_trace): Add some heuristics to determine when path
      	splitting is profitable.
      	(find_block_to_duplicate_for_splitting_paths): Make sure the graph
      	is a diamond with a single exit.
      
              PR tree-optimization/68541
      	* gcc.dg/tree-ssa/split-path-2.c: New test.
      	* gcc.dg/tree-ssa/split-path-3.c: New test.
      	* gcc.dg/tree-ssa/split-path-4.c: New test.
      	* gcc.dg/tree-ssa/split-path-5.c: New test.
      	* gcc.dg/tree-ssa/split-path-6.c: New test.
      	* gcc.dg/tree-ssa/split-path-7.c: New test.
      
      From-SVN: r233191
      Jeff Law committed
    • PR c++/69662 - -Wplacement-new on allocated one element array members · 46cb9332
      gcc/testsuite/ChangeLog:
      	PR c++/69662
      	* g++.dg/warn/Wplacement-new-size-1.C: New test.
      	* g++.dg/warn/Wplacement-new-size-2.C: New test.
      
      gcc/cp/ChangeLog:
      	PR c++/69662
      	* init.c (find_field_init): New function.
      	(warn_placement_new_too_small): Call it.  Handle one-element arrays
              at ends of structures special.
      
      gcc/c-family/ChangeLog:
      	PR c++/69662
      	* c.opt (Warning options): Update -Wplacement-new to take
              an optional argument.
      
      gcc/ChangeLog:
      	PR c++/69662
      	* doc/invoke.texi: Update -Wplacement-new to take an optional
              argument.
      
      From-SVN: r233190
      Martin Sebor committed
    • re PR middle-end/69643 (Address space discarded) · be2083ea
      PR c/69643
      
        * tree.c (tree_nop_conversion_p): Do not strip casts into or
        out of non-standard address spaces.
      testsuite/
        * gcc.target/i386/addr-space-4.c: New.
        * gcc.target/i386/addr-space-5.c: New.
      
      From-SVN: r233189
      Richard Henderson committed
    • Fix fortran scalar elemental dependency mishandling · 711d7c23
      	PR fortran/66089
      gcc/fortran/
      	* trans-expr.c (expr_is_variable, gfc_expr_is_variable): Rename
      	the former to the latter and make it non-static.  Update callers.
      	* gfortran.h (gfc_expr_is_variable): New declaration.
      	(struct gfc_ss_info): Add field needs_temporary.
      	* trans-array.c (gfc_scalar_elemental_arg_saved_as_argument):
      	Tighten the condition on aggregate expressions with a check
      	that the expression is a variable and doesn't need a temporary.
      	(gfc_conv_resolve_dependency): Add intermediary reference variable.
      	Set the needs_temporary field.
      gcc/testsuite/
      	* gfortran.dg/elemental_dependency_6.f90: New.
      
      From-SVN: r233188
      Mikael Morin committed