]> 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>
Thu, 28 Oct 2021 06:49:21 +0000 (14:49 +0800)
commite399cde6f9c89cafbbf6c3274c0af3c369d4f872
tree70c7e132238ad46a892fb6907bce763b2d3d85ca
parent95bb87b2458bfab4f8557a2dfdc867fb14305455
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.
gcc/config/riscv/arch-canonicalize