* cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
after removing trivially dead basic blocks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169304
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR rtl-optimization/44469
+ * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
+ after removing trivially dead basic blocks.
+
2011-01-26 Joseph Myers <joseph@codesourcery.com>
* config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
}
}
delete_basic_block (b);
- if (!(mode & CLEANUP_CFGLAYOUT))
- changed = true;
+ changed = true;
/* Avoid trying to remove ENTRY_BLOCK_PTR. */
b = (c == ENTRY_BLOCK_PTR ? c->next_bb : c);
continue;
+2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc.c-torture/compile/20110126-1.c: New test.
+
2011-01-26 Jakub Jelinek <jakub@redhat.com>
PR c/47473
--- /dev/null
+/* PR rtl-optimization/44469 */
+/* Testcase by Siarhei Siamashka <siarhei.siamashka@gmail.com> */
+
+int a (int *t, const char *p)
+{
+ if (*t == 0)
+ {
+ }
+ else if (*t == 1)
+ {
+ p = (const char *)t;
+ }
+ else
+ __builtin_unreachable();
+ if (p[0])
+ return 0;
+ return 1;
+}