https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104970
Bug ID: 104970
Summary: ICE in execute_todo, at passes.cc:2133 since
r12-6480-gea19c8f33a3a8d2b
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: siddhesh at gcc dot gnu.org
Target Milestone: ---
The following is reduced from libmsym package:
$ cat linalg.i
__inline void
memset2(void *__dest, int __ch, long __len) {
long __trans_tmp_1 = __builtin_dynamic_object_size(__dest, 0);
__builtin___memset_chk(__dest, __ch, __len, __trans_tmp_1);
}
void
mleye(int l, double E[][l]) { memset2(E, 0, sizeof(double)); }
$ gcc linalg.i -c -D_FORTIFY_SOURCE=2 -O
during GIMPLE pass: objsz
linalg.i: In function ‘mleye’:
linalg.i:8:1: internal compiler error: in execute_todo, at passes.cc:2133
8 | mleye(int l, double E[][l]) { memset2(E, 0, sizeof(double)); }
| ^~~~~
0x75edfa execute_todo
/home/marxin/Programming/gcc/gcc/passes.cc:2133
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.