This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Small cleanups to cse.c
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "Sayle, Roger" <roger at eyesopen dot com>
- Date: Sat, 25 Nov 2006 17:18:14 +0100
- Subject: Re: [PATCH] Small cleanups to cse.c
- References: <200611251612.06978.steven@gcc.gnu.org>
> @@ -3715,9 +3710,11 @@ record_jump_equiv (rtx insn, int taken)
> int reversed_nonequality = 0;
> enum rtx_code code;
>
> +#ifdef ENABLE_CHECKING
> /* Ensure this is the right kind of insn. */
> - if (! any_condjump_p (insn))
> - return;
> + gcc_assert (any_condjump_p (insn));
> +#endif
gcc_assert is generally not guarded like that. Could you add a small comment?
--
Eric Botcazou