2016-01-25 Tom de Vries <tom@codesourcery.com>
backport from trunk:
2014-11-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/PR64091
* tree-ssa-tail-merge.c (update_debug_stmt): After resetting
the stmt break from the loop over use operands.
* gcc.dg/torture/pr64091.c: New testcase.
From-SVN: r232794
+2016-01-25 Tom de Vries <tom@codesourcery.com>
+
+ backport from trunk:
+ PR tree-optimization/PR64091
+ 2014-11-27 Richard Biener <rguenther@suse.de>
+
+ * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
+ the stmt break from the loop over use operands.
+
2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Backport from mainline
+2016-01-25 Tom de Vries <tom@codesourcery.com>
+
+ backport from trunk:
+ PR tree-optimization/PR64091
+ 2014-11-27 Richard Biener <rguenther@suse.de>
+
+ * gcc.dg/torture/pr64091.c: New testcase.
+
2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Backport from mainline
--- /dev/null
+/* { dg-do compile } */
+/* { dg-additional-options "-g" } */
+
+extern int foo(void);
+
+int main(void)
+{
+ int i, a, b;
+
+ if (foo())
+ return 0;
+
+ for (i = 0, a = 0, b = 0; i < 3; i++, a++)
+ {
+ if (foo())
+ break;
+
+ if (b += a)
+ a = 0;
+ }
+
+ if (!a)
+ return 2;
+
+ b += a;
+
+ return 0;
+}
gimple_debug_bind_reset_value (stmt);
update_stmt (stmt);
+ break;
}
}