public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7840] predcom: Fix up component::component [PR105056]
@ 2022-03-28 7:52 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2022-03-28 7:52 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:50f9148f7a8daf1fa1608cb23595c3cca191da0f
commit r12-7840-g50f9148f7a8daf1fa1608cb23595c3cca191da0f
Author: Jakub Jelinek <jakub@redhat.com>
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 <jakub@redhat.com>
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<dref> refs;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-28 7:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-28 7:52 [gcc r12-7840] predcom: Fix up component::component [PR105056] Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).