CFT: tuple changes for ADA

Aldy Hernandez aldyh@redhat.com
Mon Nov 13 12:18:00 GMT 2006


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