PR tree-optimization/78455
* tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
* gcc.dg/uninit-23.c: New.
From-SVN: r242733
+2016-11-22 Marek Polacek <polacek@redhat.com>
+
+ PR tree-optimization/78455
+ * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
+
2016-11-22 Ian Lance Taylor <iant@golang.org>
PR go/78431
+2016-11-22 Marek Polacek <polacek@redhat.com>
+
+ PR tree-optimization/78455
+ * gcc.dg/uninit-23.c: New.
+
2016-11-22 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/78479
--- /dev/null
+/* PR tree-optimization/78455 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -Wuninitialized" } */
+
+int ij;
+
+void
+ql (void)
+{
+ int m5 = 0;
+
+ for (;;)
+ {
+ if (0)
+ for (;;)
+ {
+ int *go;
+ int *t4 = go;
+
+ l1:
+ *t4 = (*t4 != 0) ? 0 : 2; /* { dg-warning "may be used uninitialized" } */
+ }
+
+ if (ij != 0)
+ goto l1;
+ }
+}
pred_chain c = use_preds[i];
bool entire_pred_chain_invalidated = false;
for (size_t j = 0; j < c.length (); ++j)
- if (can_one_predicate_be_invalidated_p (c[i], worklist))
+ if (can_one_predicate_be_invalidated_p (c[j], worklist))
{
entire_pred_chain_invalidated = true;
break;