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().


On Fri, Oct 01, 2004 at 04:41:49PM +0200, Giovanni Bajo wrote:
> Kazu Hirata wrote:
> 
> > I am wondering if we actually need the gcc_assert().  I'll leave it up
> > to you to decide whether we should keep it.
> 
> My understanding is that assertions which involve non trivial calculations
> should be guarded by ENABLE_CHECKING.

That's exactly what Kazu's patch does:

+ #ifdef ENABLE_CHECKING
+   if (retval)
+     gcc_assert (!cleanup_control_flow ());
+ #endif

	Jakub


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