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: [patch] tree-cfg.c: Speed up cleanup_tree_cfg().


Andrew MacLeod wrote:

> So gcc_assert() isn't a direct replacement for ENABLE_CHECKING? I was
> under the impression that the contents of the gcc_assert went away when
> you disabled checking...

No, they are orthogonal. On trunk, we have everything enabled. On release
branches, we disable checking but asserts are still enabled. The idea is
that you disable strong verifications (like verify_* on trees), but you
still have some quick consistency checking which avoids some wrong code
generation.

>   gcc_assert (cond);
> becomes
>   0 && cond;
> or some such thing.

This happens only if not ENABLE_ASSERT_CHECKING.

Giovanni Bajo


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