]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix uninit riscv_subset_list::m_allow_adding_dup issue
authorKito Cheng <kito.cheng@sifive.com>
Tue, 13 May 2025 02:34:34 +0000 (10:34 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 14 May 2025 15:28:23 +0000 (23:28 +0800)
commit991adf8b18c3fa03eff6cfbf396d9a15ef17f93c
tree1cf9ed18b4633fabb159cdf0109c798924b9e4a4
parent0cbace3b142c087335e245245e97f6605a6cd1f7
RISC-V: Fix uninit riscv_subset_list::m_allow_adding_dup issue

We forgot to initialize m_allow_adding_dup in the constructor of
riscv_subset_list, then that will be a random value...that will lead
to a random behavior of the -march may accpet duplicate extension.

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc
(riscv_subset_list::riscv_subset_list): Init m_allow_adding_dup.
Reviewed-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/common/config/riscv/riscv-common.cc