diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0da6ea6..f274585 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-03-31 Bin Cheng <bin.cheng@arm.com> + + * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize + scratch field for goto case. + 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com> * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete. diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index c8a8406..7be4f16 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -5030,7 +5030,9 @@ fallback: if (address_p) comp = build_simple_mem_ref (comp); - return new_cost (computation_cost (comp, speed), 0); + cost = new_cost (computation_cost (comp, speed), 0); + cost.scratch = 0; + return cost; } } |