2017-01-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/79276
* tree-vrp.c (process_assert_insertions): Properly adjust common
when removing a duplicate.
* gcc.dg/torture/pr79276.c: New testcase.
From-SVN: r245026
+2017-01-30 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/79276
+ * tree-vrp.c (process_assert_insertions): Properly adjust common
+ when removing a duplicate.
+
+ * gcc.dg/torture/pr79276.c: New testcase.
+
2017-01-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/79256
+2017-01-30 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/79276
+ * gcc.dg/torture/pr79276.c: New testcase.
+
2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
PR target/79240
--- /dev/null
+/* { dg-do compile } */
+
+short int
+ix (int *ld, short int oi)
+{
+ *ld = ((unsigned short int)oi | oi) && !!(*ld);
+ return (oi != 0) ? oi : 1;
+}
else if (loc->e == asserts[j-1]->e)
{
/* Remove duplicate asserts. */
+ if (commonj == j - 1)
+ {
+ commonj = j;
+ common = loc;
+ }
free (asserts[j-1]);
asserts[j-1] = NULL;
}