https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103464
Bug ID: 103464 Summary: ICE on valid code at -O1 (with -ftree-vrp and ulimit -s 512) on x86_64-linux-gnu: Segmentation fault Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- [519] % ulimit -s 512 [520] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --prefix=/local/suz-local/software/local/gcc-trunk --enable-languages=c,c++ --disable-werror --disable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20211129 (experimental) [master r12-4647-g3f861a5c8fd] (GCC) [521] % [521] % gcctk -O1 -ftree-vrp small.c gcctk: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. [522] % [522] % cat small.c int a, b, c; long d; int main() { int e, f, g; long h, i; if (a) L1: goto L2; while (a) { if (c) goto L3; e = f; int j = g; if (0) L2: i = j; d = e; if (b) L3: if (a) { g = f = h; goto L1; } h = i; } return 0; }