summaryrefslogtreecommitdiff
path: root/gcc/ipa-icf-gimple.c
diff options
context:
space:
mode:
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-12 10:39:25 +0000
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-12 10:39:25 +0000
commit810430af410ad1db60955221cdf816a754926568 (patch)
tree746342e7bbaadb4d6b4a26a0086bbbc941af331d /gcc/ipa-icf-gimple.c
parent7b774922b3120268018b2013e778bf7a8c4a6f47 (diff)
downloadgcc-810430af410ad1db60955221cdf816a754926568.tar.gz
Fix for PR64550.
PR ipa/64550 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare volatility for correct operands. * gcc.dg/ipa/PR64550.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219457 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-icf-gimple.c')
-rw-r--r--gcc/ipa-icf-gimple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-icf-gimple.c b/gcc/ipa-icf-gimple.c
index 8c3a27babc3..ed3cdf56ccb 100644
--- a/gcc/ipa-icf-gimple.c
+++ b/gcc/ipa-icf-gimple.c
@@ -267,7 +267,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)