https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118540
Bug ID: 118540 Summary: RISC-V: ICE for unsupported target attribute Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kristerw at gcc dot gnu.org Target Milestone: --- I mistakenly compiled the code below for RV32 instead RV64: riscv32-elf-gcc -O3 -march=rv32gc bug.c This resulted in an ICE instead of an error message. long foo (long a, long b) __attribute__((target("arch=rv64gc_zbb"))); long foo (long a, long b) __attribute__((target("arch=rv64gc_zba"))); long foo (long a, long b) { return a + (b * 2); }