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]
Other format: [Raw text]

Re: validate subregs, part 6


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


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