This is the mail archive of the
mailing list for the GCC project.
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.
* tree-ssa-propagate.c (get_rhs): Use GIMPLE_MODIFY_STMT and
TREE_OPERAND when appropriate.
--- tree-ssa-propagate.c (revision 118179)
+++ tree-ssa-propagate.c (working copy)
@@ -536,9 +536,9 @@ get_rhs (tree stmt)
/* FALLTHRU */
- 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);