This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix up sorting of block fragments
- From: Nathan Froyd <froydnj at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 16 Aug 2010 13:47:59 -0700
- Subject: Re: [PATCH] Fix up sorting of block fragments
- References: <20100816204227.GA702@tyan-ft48-01.lab.bos.redhat.com>
On Mon, Aug 16, 2010 at 10:42:27PM +0200, Jakub Jelinek wrote:
> * function.c (block_fragments_nreverse, blocks_nreverse_all): New
> functions.
> (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
> (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
> call block_nreverse here.
>
> +/* Reverse the order of elements in the fragment chain T of blocks,
> + and return the new head of the chain (old last element). */
> +
> +static tree
> +block_fragments_nreverse (tree t)
> +{
> + tree prev = 0, decl, next;
Can we use `block' instead of `decl' here and in blocks_nreverse_all?
-Nathan