]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Handle zi* extension correctly for arch-canonicalize script
authorKito Cheng <kito.cheng@sifive.com>
Wed, 27 Oct 2021 15:41:17 +0000 (23:41 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 30 Mar 2022 09:02:45 +0000 (17:02 +0800)
commit330aff0a9f7be55b7bd1e0c420456b3d29e39c44
treef366274345894ea20f45af207b8dc93231511c6c
parent6fccb624f13e94d0d5d0fd5d0ff98060c84626a0
RISC-V: Handle zi* extension correctly for arch-canonicalize script

Canonical order for z-prefixed extension are rely on the canonical order of
single letter extension, however we didn't put i into the list before,
so when we put zicsr or zifencei it will got exception.

gcc/ChangeLog:

* config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
CANONICAL_ORDER.

(cherry picked from commit e399cde6f9c89cafbbf6c3274c0af3c369d4f872)
gcc/config/riscv/arch-canonicalize