diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2020-06-29 17:52:42 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2020-07-01 11:30:02 +0800 |
commit | 83c25f27c442ce567829491fc1b4703f51b9bea6 (patch) | |
tree | 7ace8528c181b393ffb4e9d8650af938e25bb804 /gcc/fortran/decl.c | |
parent | a2cc9b454d7ce04b8209cd22d661da7f9327ae80 (diff) | |
download | gcc-83c25f27c442ce567829491fc1b4703f51b9bea6.zip gcc-83c25f27c442ce567829491fc1b4703f51b9bea6.tar.gz gcc-83c25f27c442ce567829491fc1b4703f51b9bea6.tar.bz2 |
RISC-V: Preserve arch version info during normalizing arch string
- Arch version should preserved if user explicitly specified the version.
e.g.
After normalize, -march=rv32if3d should be -march=rv32i_f3p0d
instead of-march=rv32ifd.
gcc/ChangeLog:
* common/config/riscv/riscv-common.c (riscv_subset_t): New field
added.
(riscv_subset_list::parsing_subset_version): Add parameter for
indicate explicitly version, and handle explicitly version.
(riscv_subset_list::handle_implied_ext): Ditto.
(riscv_subset_list::add): Ditto.
(riscv_subset_t::riscv_subset_t): Init new field.
(riscv_subset_list::to_string): Always output version info if version
explicitly specified.
(riscv_subset_list::parsing_subset_version): Handle explicitly
arch version.
(riscv_subset_list::parse_std_ext): Ditto.
(riscv_subset_list::parse_multiletter_ext): Ditto.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/attribute-13.c: New.
Diffstat (limited to 'gcc/fortran/decl.c')
0 files changed, 0 insertions, 0 deletions