[Bug ipa/64550] [5 Regression] IPA fixes cause ICE in tree-ssa.c:939
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 9 14:29:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64550
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Suggested patch:
diff --git a/gcc/ipa-icf-gimple.c b/gcc/ipa-icf-gimple.c
index 9cb7bc3..7e3b1dd 100644
--- a/gcc/ipa-icf-gimple.c
+++ b/gcc/ipa-icf-gimple.c
@@ -260,7 +260,7 @@ func_checker::compare_memory_operand (tree t1, tree t2)
/* Compare alias sets for memory operands. */
if (source_is_memop && target_is_memop)
{
- if (TREE_THIS_VOLATILE (b1) != TREE_THIS_VOLATILE (b2))
+ if (TREE_THIS_VOLATILE (t1) != TREE_THIS_VOLATILE (t2))
return return_false_with_msg ("different operand volatility");
if (ao_ref_alias_set (&r1) != ao_ref_alias_set (&r2)
More information about the Gcc-bugs
mailing list