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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
2022-03-25  Jakub Jelinek  <ja...@redhat.com>

        PR tree-optimization/105056
        * tree-predcom.cc (component::component): Initialize also comp_step.

--- gcc/tree-predcom.cc.jj      2022-03-24 12:23:11.000000000 +0100
+++ gcc/tree-predcom.cc 2022-03-25 17:50:09.238282600 +0100
@@ -367,7 +367,8 @@ enum ref_step_type

 struct component
 {
-  component (bool es) : eliminate_store_p (es), next (NULL) {}
+  component (bool es) : comp_step (RS_ANY), eliminate_store_p (es),
+    next (NULL) {}

   /* The references in the component.  */
   auto_vec<dref> refs;

(I think RS_ANY is better default than RS_INTERNAL which was previously used
due to zero XCNEW).

Reply via email to