RISC-V: Move class riscv_subset_list and riscv_subset_t to riscv-protos.h
authorKito Cheng <kito.cheng@sifive.com>
Tue, 29 Dec 2020 08:15:19 +0000 (16:15 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 8 Jan 2021 03:14:02 +0000 (11:14 +0800)
commit0b7b4710111e0ac42d14ffdd1d71ff9c6751414e
tree3fe47553c57f97fd93cd55079eee0908c6fec714
parent7d187e4f6f582b7589b0201e6be3d2c96abe4d2a
RISC-V: Move class riscv_subset_list and riscv_subset_t to riscv-protos.h

Pre-work of new style of architecture extension test macros, we need the
list used in `config/riscv/riscv-c.c`, so those struct/class declaration
must move to header file rather than local C file.

gcc/ChangeLog

* common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
Move to riscv-subset.h.
(struct riscv_subset_t): Ditto.
(class riscv_subset_list): Ditto.
* config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
from riscv-common.c.
(struct riscv_subset_t): Ditto.
(class riscv_subset_list): Ditto.
* config/riscv/t-riscv ($(common_out_file)): Add file
dependency.
gcc/common/config/riscv/riscv-common.c
gcc/config/riscv/riscv-subset.h [new file with mode: 0644]
gcc/config/riscv/t-riscv