diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2024-07-05 01:09:46 +0200 |
---|---|---|
committer | Christoph Müllner <christoph.muellner@vrull.eu> | 2024-07-09 15:21:15 +0200 |
commit | 85fa334fbcaa8e4b98ab197a8c9410dde87f0ae3 (patch) | |
tree | f1ef5ec1ea3b27b262552a408e6618152af83bd3 /gcc/doc | |
parent | 0717d50fc4ff983b79093bdef43b04e4584cc3cd (diff) | |
download | gcc-85fa334fbcaa8e4b98ab197a8c9410dde87f0ae3.zip gcc-85fa334fbcaa8e4b98ab197a8c9410dde87f0ae3.tar.gz gcc-85fa334fbcaa8e4b98ab197a8c9410dde87f0ae3.tar.bz2 |
RISC-V: Deduplicate arch subset list processing
We have a code duplication in riscv_set_arch_by_subset_list() and
riscv_parse_arch_string(), where the latter function parses an ISA string
into a subset_list before doing the same as the former function.
riscv_parse_arch_string() is used to process command line options and
riscv_set_arch_by_subset_list() processes target attributes.
So, it is obvious that both functions should do the same.
Let's deduplicate the code to enforce this.
gcc/ChangeLog:
* common/config/riscv/riscv-common.cc (riscv_set_arch_by_subset_list):
Fix overlong line.
(riscv_parse_arch_string): Replace duplicated code by a call to
riscv_set_arch_by_subset_list.
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'gcc/doc')
0 files changed, 0 insertions, 0 deletions