diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-11-21 14:54:08 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-11-21 14:54:08 +0100 |
commit | aa11164a39053f6f0e24d922a5b6b993c47a96e6 (patch) | |
tree | d95c54bdcfd80e3f002944b84e87c6b045748b8f /gcc | |
parent | 938f9248db10f40bd95f09a53742e9063d4814ae (diff) | |
download | gcc-aa11164a39053f6f0e24d922a5b6b993c47a96e6.zip gcc-aa11164a39053f6f0e24d922a5b6b993c47a96e6.tar.gz gcc-aa11164a39053f6f0e24d922a5b6b993c47a96e6.tar.bz2 |
re PR tree-optimization/83086 (valgrind error in gimple-ssa-store-merging.c for recent build)
PR tree-optimization/83086
* gimple-ssa-store-merging.c
(imm_store_chain_info::try_coalesce_bswap): Test this_n.base_addr
rather than n.base_addr.
From-SVN: r255002
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/gimple-ssa-store-merging.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eb2bdd6..ab0d1af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-11-21 Jakub Jelinek <jakub@redhat.com> + + PR tree-optimization/83086 + * gimple-ssa-store-merging.c + (imm_store_chain_info::try_coalesce_bswap): Test this_n.base_addr + rather than n.base_addr. + 2017-11-21 Martin Liska <mliska@suse.cz> PR rtl-optimization/82044 diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c index c0b1015..ce0f1f2 100644 --- a/gcc/gimple-ssa-store-merging.c +++ b/gcc/gimple-ssa-store-merging.c @@ -2390,7 +2390,7 @@ imm_store_chain_info::try_coalesce_bswap (merged_store_group *merged_store, ? try_size - info->bitsize - bitpos : bitpos)) return false; - if (n.base_addr && vuse_store) + if (this_n.base_addr && vuse_store) { unsigned int j; for (j = first; j <= last; ++j) |