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]

Re: small problem in flow.c


On Mon, Aug 16, 1999 at 10:51:36PM +0100, Herman ten Brugge wrote:
> I copied some lines from free_basic_block_vars to find_basic_blocks. I hope
> this is the correct patch cause I don't really know how flow works.

This doesn't look correct.  It's hard to say for sure because you
didn't give an indication of where the problem showed up.

> +      ENTRY_BLOCK_PTR->aux = NULL;
> +      EXIT_BLOCK_PTR->aux = NULL;

These bits are pass-specific.  Could be that someone didn't 
init them properly before running some pass.

> +      ENTRY_BLOCK_PTR->global_live_at_end = NULL;
> +      EXIT_BLOCK_PTR->global_live_at_start = NULL;

These bits should be set up in allocate_bb_life_data, which
is called during life_analysis.  And before that, we shouldn't
have been looking at these fields.


r~


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