From: Torbjorn Granlund Date: Tue, 22 Oct 1996 00:26:25 +0000 (+0000) Subject: (do_store_flag): Don't check if target is 0 in code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb60ac63054d8b69423828cb780c95b60087aaf5;p=gcc.git (do_store_flag): Don't check if target is 0 in code emitting store flag as compare-branch. From-SVN: r12993 --- diff --git a/gcc/expr.c b/gcc/expr.c index e06d3b187eb..37950e9bc20 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -11081,7 +11081,7 @@ do_store_flag (exp, target, mode, only_cheap) } /* If this failed, we have to do this with set/compare/jump/set code. */ - if (target == 0 || GET_CODE (target) != REG + if (GET_CODE (target) != REG || reg_mentioned_p (target, op0) || reg_mentioned_p (target, op1)) target = gen_reg_rtx (GET_MODE (target));