https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116409
Bug ID: 116409
Summary: [15 Regression] Recent phiopt change causing ICE on
riscv64
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: law at gcc dot gnu.org
Target Milestone: ---
riscv64 is failing to build glibc after the recent phiopt changes.
Using a riscv64-elf cross compiler:
./cc1 -O2 j.c -march=rv64gc -mabi=lp64d -frounding-math -fno-math-errno
j.c:8:1: internal compiler error: in factor_out_conditional_operation, at
tree-ssa-phiopt.cc:407
Naturally the recent phiopt change is suspect.
Reduced testcase:
double kernel_ax;
double sqrt();
double fma();
double kernel() {
if (kernel_ax)
return sqrt(fma());
return sqrt(fma());
}