public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Bernd Edlinger <edlinger@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1073] Fix gcc-bootstrap issue Date: Wed, 26 May 2021 17:18:33 +0000 (GMT) [thread overview] Message-ID: <20210526171833.0939D3945C2B@sourceware.org> (raw) 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);
reply other threads:[~2021-05-26 17:18 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210526171833.0939D3945C2B@sourceware.org \ --to=edlinger@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).