diff options
author | Patrick O'Neill <patrick@rivosinc.com> | 2023-11-14 15:08:31 -0800 |
---|---|---|
committer | Patrick O'Neill <patrick@rivosinc.com> | 2023-11-15 10:23:44 -0800 |
commit | 026d9454b1d9971061ad2e7d47c3ef4b0b96495d (patch) | |
tree | f99e1172eef96bafb782a877873a131cd74d02f1 /gcc/gcov-tool.cc | |
parent | 186331063dfbcf1eacb445c473d92634c9baa90f (diff) | |
download | gcc-026d9454b1d9971061ad2e7d47c3ef4b0b96495d.zip gcc-026d9454b1d9971061ad2e7d47c3ef4b0b96495d.tar.gz gcc-026d9454b1d9971061ad2e7d47c3ef4b0b96495d.tar.bz2 |
RISC-V: Fix ICE in non-canonical march parsing
Passing in a base extension in non-canonical order (i, e, g) causes GCC
to ICE:
xgcc: error: '-march=rv64ge': ISA string is not in canonical order. 'e'
xgcc: internal compiler error: in add, at common/config/riscv/riscv-common.cc:671
...
This is fixed by skipping to the next extension when a non-canonical
order is detected.
gcc/ChangeLog:
* common/config/riscv/riscv-common.cc
(riscv_subset_list::parse_std_ext): Emit an error and skip to
the next extension when a non-canonical ordering is detected.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/arch-27.c: New test.
* gcc.target/riscv/arch-28.c: New test.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
Diffstat (limited to 'gcc/gcov-tool.cc')
0 files changed, 0 insertions, 0 deletions