https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128841
Bug ID: 128841
Summary: Segfault building blender with
-mrvv-max-lmul=conv-dynamic on RISC-V
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: law at gcc dot gnu.org
CC: rdapp at gcc dot gnu.org
Blocks: 26163
Target Milestone: ---
Target: riscv
Compile with -O3 -march=rv64gcbv -mrvv-max-lmul=conv-dynamic to trigger a
segfault due to dereferencing a NULL pointer in compare_lmul_to.
short selectend_nurb_bp_1;
char selectend_nurb_sel;
void swap_selection_bpoint();
void selectend_nurb(char doswap) {
int nu_3;
while (nu_3--)
if (selectend_nurb_bp_1) {
if (doswap)
swap_selection_bpoint();
else
selectend_nurb_sel = 1;
if (selectend_nurb_sel)
break;
}
}
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163
[Bug 26163] [meta-bug] missed optimization in SPEC (2026, 2k17, 2k and 2k6 and
95)