public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1073] Fix gcc-bootstrap issue
@ 2021-05-26 17:18 Bernd Edlinger
  0 siblings, 0 replies; only message in thread
From: Bernd Edlinger @ 2021-05-26 17:18 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7f0cfeb1ac580edf629874146b349fe7ad7e7718

commit r12-1073-g7f0cfeb1ac580edf629874146b349fe7ad7e7718
Author: Bernd Edlinger <bernd.edlinger@hotmail.de>
Date:   Wed May 26 18:45:09 2021 +0200

    Fix gcc-bootstrap issue
    
    ... or at least try to.
    
    2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
    
            * gimple-range-gori.cc (range_def_chain::register_dependency):
            Resize m_def_chain when needed.

Diff:
---
 gcc/gimple-range-gori.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/gimple-range-gori.cc b/gcc/gimple-range-gori.cc
index a4c4bf507ba..c51e6ce0697 100644
--- a/gcc/gimple-range-gori.cc
+++ b/gcc/gimple-range-gori.cc
@@ -176,6 +176,8 @@ range_def_chain::register_dependency (tree name, tree dep, basic_block bb)
     return;
 
   unsigned v = SSA_NAME_VERSION (name);
+  if (v >= m_def_chain.length ())
+    m_def_chain.safe_grow_cleared (num_ssa_names + 1);
   struct rdc &src = m_def_chain[v];
   gimple *def_stmt = SSA_NAME_DEF_STMT (dep);
   unsigned dep_v = SSA_NAME_VERSION (dep);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-26 17:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 17:18 [gcc r12-1073] Fix gcc-bootstrap issue Bernd Edlinger

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).