gcse.c (delete_null_pointer_checks_1): Do not delete CC setter unless HAVE_cc0.

* gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
	unless HAVE_cc0.

From-SVN: r78484
This commit is contained in:
Alan Modra 2004-02-26 03:21:15 +00:00 committed by Alan Modra
parent 90f6987a6d
commit fb643f6442
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-02-26 Alan Modra <amodra@bigpond.net.au>
* gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
unless HAVE_cc0.
2004-02-25 Richard Henderson <rth@redhat.com> 2004-02-25 Richard Henderson <rth@redhat.com>
* explow.c (force_reg): Call mark_reg_pointer as appropriate. * explow.c (force_reg): Call mark_reg_pointer as appropriate.

View File

@ -6069,8 +6069,10 @@ delete_null_pointer_checks_1 (unsigned int *block_reg, sbitmap *nonnull_avin,
something_changed = 1; something_changed = 1;
delete_insn (last_insn); delete_insn (last_insn);
#ifdef HAVE_cc0
if (compare_and_branch == 2) if (compare_and_branch == 2)
delete_insn (earliest); delete_insn (earliest);
#endif
purge_dead_edges (bb); purge_dead_edges (bb);
/* Don't check this block again. (Note that BB_END is /* Don't check this block again. (Note that BB_END is