https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98271
Bug ID: 98271
Summary: ICE in apply_scale, at profile-count.h:1082 with large
--param=align-loop-iterations
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: acoplan at gcc dot gnu.org
Target Milestone: ---
The following fails:
$ cat test.c
void a() {
for (;;)
;
}
$ aarch64-elf-gcc -c -O --param=align-loop-iterations=1197120096074465280
test.c
during RTL pass: alignments
test.c: In function 'a':
test.c:4:1: internal compiler error: in apply_scale, at profile-count.h:1082
4 | }
| ^
0x9e0637 profile_count::apply_scale(long, long) const
/home/alecop01/toolchain/src/gcc/gcc/profile-count.h:1082
0x9e0637 compute_alignments()
/home/alecop01/toolchain/src/gcc/gcc/final.c:746
0x9e086e execute
/home/alecop01/toolchain/src/gcc/gcc/final.c:825
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
This appears to the minimum value of align-loop-iterations at which GCC ICEs
here.