This is the mail archive of the gcc@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: Problems using cfg_layout_finalize()


On Fri, 2005-01-04 at 00:10 -0500, Grzegorz B. Prokopski wrote:
> /* Leave the rest as it was. */
>   FOR_EACH_BB (bb)
>     if ((bb->next_bb != EXIT_BLOCK_PTR) && (!bb->rbi->next))
>       bb->rbi->next = bb->next_bb;

This code worked well in some other place from which I copied it,
but unfortunatelly for the kind of reordering I do the above makes
some BBs be referenced twice as bb->rbi->next, from two different BBs.
I needed to use a more complicated method of setting the order of
the "rest" of BBs.

			Grzegorz B. Prokopski

PS: Thanks to the person who offered help off-list.



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