https://gcc.gnu.org/g:18adc749c657c8939634ef8554923e07c960ec24
commit r17-1344-g18adc749c657c8939634ef8554923e07c960ec24 Author: Kito Cheng <[email protected]> Date: Wed Jun 3 15:01:19 2026 +0800 RISC-V: Sync extension of canonical order with spec The canonical order has been adjusted a little bit [1-2]. Fortunately, the affected extensions haven't been ratified yet, so there's no real impact. Although P doesn't have an upstream yet, to avoid forgetting to update the canonical order in the future, I've decided to update it now while I still remember it. [1] https://github.com/riscv/riscv-isa-manual/pull/2903 [2] https://github.com/riscv/riscv-isa-manual/pull/2910 gcc/ChangeLog: * common/config/riscv/riscv-common.cc (riscv_supported_std_ext): Move 'v' before 'p' and drop 'n' to match the spec. * config/riscv/arch-canonicalize (CANONICAL_ORDER): Ditto. Diff: --- gcc/common/config/riscv/riscv-common.cc | 2 +- gcc/config/riscv/arch-canonicalize | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index 20f40fc662c7..ed5d6839e92e 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -798,7 +798,7 @@ riscv_subset_list::lookup (const char *subset, int major_version, static const char * riscv_supported_std_ext (void) { - return "mafdqlcbkjtpvnh"; + return "mafdqlcbkjtvph"; } /* Parsing subset version. diff --git a/gcc/config/riscv/arch-canonicalize b/gcc/config/riscv/arch-canonicalize index 4f45bc263410..97b4ea587dd7 100755 --- a/gcc/config/riscv/arch-canonicalize +++ b/gcc/config/riscv/arch-canonicalize @@ -30,7 +30,7 @@ import os from functools import reduce SUPPORTED_ISA_SPEC = ["2.2", "20190608", "20191213"] -CANONICAL_ORDER = "imafdqlcbkjtpvnh" +CANONICAL_ORDER = "imafdqlcbkjtvph" LONG_EXT_PREFIXES = ['z', 's', 'h', 'x'] def parse_define_riscv_ext(content):
