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] Fix up sorting of block fragments


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


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