diff options
author | Martin Liska <mliska@suse.cz> | 2015-03-03 13:09:13 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-03-03 12:09:13 +0000 |
commit | 3c031cbe7c4b1896dd262a373131fc9a7cb58981 (patch) | |
tree | 4c8cef4eead0a474aa8a3293af3880924b0a2f3c /gcc/ipa-icf.c | |
parent | 2f159d9f86705209595b1b8de719231c2f5fae33 (diff) | |
download | gcc-3c031cbe7c4b1896dd262a373131fc9a7cb58981.zip gcc-3c031cbe7c4b1896dd262a373131fc9a7cb58981.tar.gz gcc-3c031cbe7c4b1896dd262a373131fc9a7cb58981.tar.bz2 |
re PR ipa/65282 (wrong code at -Os and above on x86_64-linux-gnu)
Fix PR ipa/65282.
* gcc.dg/ipa/PR65282.c: New test.
PR ipa/65282
* ipa-icf.c (sem_variable::equals): Fix wrong condition.
From-SVN: r221146
Diffstat (limited to 'gcc/ipa-icf.c')
-rw-r--r-- | gcc/ipa-icf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 4832618..a47ca29 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -1638,7 +1638,7 @@ sem_variable::equals (tree t1, tree t2) tree y1 = TREE_OPERAND (t1, 1); tree y2 = TREE_OPERAND (t2, 1); - if (!sem_variable::equals (x1, x2) && sem_variable::equals (y1, y2)) + if (!sem_variable::equals (x1, x2) || !sem_variable::equals (y1, y2)) return false; if (!sem_variable::equals (array_ref_low_bound (t1), array_ref_low_bound (t2))) |