This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29788] [4.1/4.2/4.3 Regression] ICE in var_ann, at tree-flow-inline.h:130
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2006 02:30:19 -0000
- Subject: [Bug tree-optimization/29788] [4.1/4.2/4.3 Regression] ICE in var_ann, at tree-flow-inline.h:130
- References: <bug-29788-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from pinskia at gcc dot gnu dot org 2006-11-12 02:30 -------
Here is the fix:
Index: tree-inline.c
===================================================================
--- tree-inline.c (revision 118717)
+++ tree-inline.c (working copy)
@@ -612,6 +612,8 @@ copy_body_r (tree *tp, int *walk_subtree
TREE_THIS_VOLATILE (*tp) = TREE_THIS_VOLATILE (old);
}
}
+ else
+ *tp = fold (*tp);
*walk_subtrees = 0;
return NULL;
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn|26994 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29788