This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/80079] [7 Regression] Conditional jump or move depends on uninitialised value(s): gimple-ssa-store-merging.c:768


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80079

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Or perhaps just init it in the constructor:

diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c
index 5bdb4597d615..a6fd8ede467c 100644
--- a/gcc/gimple-ssa-store-merging.c
+++ b/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 ()
   {
   }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]