aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2021-10-27 23:41:17 +0800
committerKito Cheng <kito.cheng@sifive.com>2021-10-28 14:49:21 +0800
commite399cde6f9c89cafbbf6c3274c0af3c369d4f872 (patch)
tree70c7e132238ad46a892fb6907bce763b2d3d85ca /gcc
parent95bb87b2458bfab4f8557a2dfdc867fb14305455 (diff)
downloadgcc-e399cde6f9c89cafbbf6c3274c0af3c369d4f872.zip
gcc-e399cde6f9c89cafbbf6c3274c0af3c369d4f872.tar.gz
gcc-e399cde6f9c89cafbbf6c3274c0af3c369d4f872.tar.bz2
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.
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/config/riscv/arch-canonicalize2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/riscv/arch-canonicalize b/gcc/config/riscv/arch-canonicalize
index ea95a06..c7df3c8 100755
--- a/gcc/config/riscv/arch-canonicalize
+++ b/gcc/config/riscv/arch-canonicalize
@@ -28,7 +28,7 @@ import itertools
from functools import reduce
-CANONICAL_ORDER = "mafdgqlcbjtpvn"
+CANONICAL_ORDER = "imafdgqlcbjtpvn"
LONG_EXT_PREFIXES = ['z', 's', 'h', 'x']
#