This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: validate subregs, part 6
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 23 Nov 2004 19:27:58 -0500 (EST)
- Subject: Re: validate subregs, part 6
- References: <20041124001032.GA5952@redhat.com>
Hi Richard,
> + rtx
> + gen_rtx_SUBREG (enum machine_mode mode, rtx reg, int offset)
> + {
> + gcc_assert (validate_subreg (mode, GET_MODE (reg), reg, offset));
> return gen_rtx_raw_SUBREG (mode, reg, offset);
> }
Do we want to wrap this gcc_assert with ENABLE_CHECKING if
validate_subreg is a bit heavy? I see that it doesn't return true
until the end of the function.
I haven't actually looked at what major distributions do, but they
probably disable checking while enabling assert.
Kazu Hirata