public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Use safe_grow_cleared for vector info [PR111649]
@ 2023-10-09 12:50 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-10-09 12:50 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cedf4aaf9fa679be105f98475d55bcbf562c19c8

commit cedf4aaf9fa679be105f98475d55bcbf562c19c8
Author: Patrick O'Neill <patrick@rivosinc.com>
Date:   Sat Sep 30 15:50:11 2023 -0700

    RISC-V: Use safe_grow_cleared for vector info [PR111649]
    
    Resolves a riscv*-*-* bootstrap failure due to a newly-turned-on assert.
    
    2023-09-30  Jakub Jelinek  <jakub@redhat.com>
    
    gcc/ChangeLog:
    
            PR target/111649
    
            * config/riscv/riscv-vsetvl.cc (vector_infos_manager::vector_infos_manager):
            Replace safe_grow with safe_grow_cleared.
    
    (cherry picked from commit 04e772bbdcbc1cea67cd498c1a45e4360bf5f8e1)

Diff:
---
 gcc/config/riscv/riscv-vsetvl.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc
index af8c31d873c..4b06d93e7f9 100644
--- a/gcc/config/riscv/riscv-vsetvl.cc
+++ b/gcc/config/riscv/riscv-vsetvl.cc
@@ -2417,8 +2417,8 @@ vector_infos_manager::vector_infos_manager ()
   vector_antin = nullptr;
   vector_antout = nullptr;
   vector_earliest = nullptr;
-  vector_insn_infos.safe_grow (get_max_uid ());
-  vector_block_infos.safe_grow (last_basic_block_for_fn (cfun));
+  vector_insn_infos.safe_grow_cleared (get_max_uid ());
+  vector_block_infos.safe_grow_cleared (last_basic_block_for_fn (cfun));
   if (!optimize)
     {
       basic_block cfg_bb;

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

only message in thread, other threads:[~2023-10-09 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-09 12:50 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Use safe_grow_cleared for vector info [PR111649] Jeff Law

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