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: CFT: tuple changes for ADA


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;
 


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