+2017-11-06 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/82838
+ * gimple-ssa-store-merging.c
+ (imm_store_chain_info::output_merged_store): Call force_gimple_operand_1
+ on a separate gimple_seq which is then appended to seq.
+
2017-11-06 Jeff Law <law@redhat.com>
PR target/82788
else if (operand_equal_p (base_addr, op.base_addr, 0))
load_addr[j] = addr;
else
- load_addr[j]
- = force_gimple_operand_1 (unshare_expr (op.base_addr),
- &seq, is_gimple_mem_ref_addr,
- NULL_TREE);
+ {
+ gimple_seq this_seq;
+ load_addr[j]
+ = force_gimple_operand_1 (unshare_expr (op.base_addr),
+ &this_seq, is_gimple_mem_ref_addr,
+ NULL_TREE);
+ gimple_seq_add_seq_without_update (&seq, this_seq);
+ }
}
FOR_EACH_VEC_ELT (split_stores, i, split_store)
+2017-11-06 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/82838
+ * gcc.c-torture/compile/pr82838.c: New test.
+
2017-11-06 Jeff Law <law@redhat.com>
PR target/82788
--- /dev/null
+/* PR tree-optimization/82838 */
+
+struct S { unsigned short a, b, c; };
+struct S f[10];
+
+void
+foo (int e)
+{
+ struct S *x;
+ f[e].b = x[e].a;
+ f[e].c = x[e].b;
+}