CFT: tuple changes for ADA

Laurent GUERBY laurent@guerby.net
Mon Nov 13 19:51:00 GMT 2006


This fixed it :)

I sent a report to gcc-testresults for "[r118753]
(gimple-tuples-branch)" but it is not archived
on the web yet.

Laurent

On Mon, 2006-11-13 at 07:51 -0400, Aldy Hernandez wrote:
> On Sun, Nov 12, 2006 at 02:56:34PM +0100, Laurent GUERBY wrote:
> > It looks like the failure does not go away with your patch.
> 
> Ok, apparently 5 am is not a good time for my brain.  This patch, will fix
> the problem you're seeing.  Let me know if it fixes the entire regression
> as well, or if there are any more problems.
> 
> Committed to branch.
> 
> Aldy
> 
> 	* tree-ssa-propagate.c (get_rhs): Use GIMPLE_MODIFY_STMT and
> 	TREE_OPERAND when appropriate.
> 
> Index: tree-ssa-propagate.c
> ===================================================================
> --- tree-ssa-propagate.c	(revision 118179)
> +++ tree-ssa-propagate.c	(working copy)
> @@ -536,9 +536,9 @@ get_rhs (tree stmt)
>        /* FALLTHRU */
>  
>      case GIMPLE_MODIFY_STMT:
> -      stmt = GIMPLE_STMT_OPERAND (stmt, 1);
> +      stmt = PROTECTED_TREE_OPERAND (stmt, 1);
>        if (TREE_CODE (stmt) == WITH_SIZE_EXPR)
> -	return GIMPLE_STMT_OPERAND (stmt, 0);
> +	return TREE_OPERAND (stmt, 0);
>        else
>  	return stmt;
>  
> 



More information about the Gcc-patches mailing list