From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2153) id CC7433858C56; Mon, 28 Mar 2022 07:52:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC7433858C56 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jakub Jelinek To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-7840] predcom: Fix up component::component [PR105056] X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/master X-Git-Oldrev: f6819b7fea38f2e5482c71aabab3d44a8bd7d904 X-Git-Newrev: 50f9148f7a8daf1fa1608cb23595c3cca191da0f Message-Id: <20220328075247.CC7433858C56@sourceware.org> Date: Mon, 28 Mar 2022 07:52:47 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2022 07:52:47 -0000 https://gcc.gnu.org/g:50f9148f7a8daf1fa1608cb23595c3cca191da0f commit r12-7840-g50f9148f7a8daf1fa1608cb23595c3cca191da0f Author: Jakub Jelinek Date: Mon Mar 28 09:51:28 2022 +0200 predcom: Fix up component::component [PR105056] The recent change didn't initialize comp_step while previously we used XCNEW to allocate it. I think RS_ANY is better than RS_INTERNAL (== 0) as the default. 2022-03-28 Jakub Jelinek PR tree-optimization/105056 * tree-predcom.cc (component::component): Initialize also comp_step. Diff: --- gcc/tree-predcom.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/tree-predcom.cc b/gcc/tree-predcom.cc index e4aea7cdcb4..bb3a1cb68fc 100644 --- a/gcc/tree-predcom.cc +++ b/gcc/tree-predcom.cc @@ -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 refs;