This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problems using cfg_layout_finalize()
- From: "Grzegorz B. Prokopski" <gadek at debian dot org>
- To: gcc List <gcc at gcc dot gnu dot org>
- Date: Fri, 01 Apr 2005 19:19:43 -0500
- Subject: Re: Problems using cfg_layout_finalize()
- Organization: Debian http://www.debian.org - The Free Operating System
- References: <1112332251.1085.393.camel@localhost.localdomain>
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.