This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix uninitialized data in gimple-ssa-store-merging.c (PR tree-optimization/80079)
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 17 Mar 2017 14:15:50 +0100
- Subject: [PATCH] Fix uninitialized data in gimple-ssa-store-merging.c (PR tree-optimization/80079)
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=polacek at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 89C092B57A1
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 89C092B57A1
Uninitialized data are never good, especially with MALLOC_PERTURB_ set in
your environment. This patch from the PR fixes stuff for me.
Applying to trunk.
2017-03-17 Marek Polacek <polacek@redhat.com>
Markus Trippelsdorf <markus@trippelsdorf.de>
PR tree-optimization/80079
* gimple-ssa-store-merging.c (class pass_store_merging): Initialize
m_stores_head.
diff --git gcc/gimple-ssa-store-merging.c gcc/gimple-ssa-store-merging.c
index 5bdb459..17a95a5 100644
--- gcc/gimple-ssa-store-merging.c
+++ gcc/gimple-ssa-store-merging.c
@@ -725,7 +725,7 @@ class pass_store_merging : public gimple_opt_pass
{
public:
pass_store_merging (gcc::context *ctxt)
- : gimple_opt_pass (pass_data_tree_store_merging, ctxt)
+ : gimple_opt_pass (pass_data_tree_store_merging, ctxt), m_stores_head ()
{
}
Marek