[Bug middle-end/44826] Mozilla build ICE at Invalid first operand of MEM_REF.

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jul 6 13:31:00 GMT 2010



------- Comment #11 from rguenth at gcc dot gnu dot org  2010-07-06 13:30 -------
Index: tree-inline.c
===================================================================
--- tree-inline.c       (revision 161865)
+++ tree-inline.c       (working copy)
@@ -817,6 +817,12 @@ remap_gimple_op_r (tree *tp, int *walk_s
          tree decl = TREE_OPERAND (*tp, 0);
          tree *n;

+         /* See remap_ssa_name.  */
+         if (TREE_CODE (decl) == SSA_NAME
+             && TREE_CODE (SSA_NAME_VAR (decl)) == RESULT_DECL
+             && id->transform_return_to_modify)
+           decl = SSA_NAME_VAR (decl);
+
          n = (tree *) pointer_map_contains (id->decl_map, decl);
          if (n)
            {


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44826



More information about the Gcc-bugs mailing list