This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sets_cc0_p fixes


On Thu, Jul 26, 2001 at 05:11:49AM +0200, Roman Zippel wrote:
> We can now either fix all callers or add this to sets_cc0_p:
> 
> 	if (GET_RTX_CLASS (GET_CODE (x) == 'i'))
> 		x = PATTERN (x);

Hum.  It may be easier to do this, because it's too easy to forget.

Your patch isn't correct either, becase of these:

> -	      if (sets_cc0_p (PREV_INSN (copy)))
> +	      if (sets_cc0_p (PREV_INSN (PATTERN (copy))))

The PATTERN goes on the outside.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]