https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103231
--- Comment #9 from Zhendong Su <zhendong.su at inf dot ethz.ch> --- A very simple repro (with ulimit -s 32): [530] % compile.sh small.c *** Compiling with: gcctk -O1 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. *** Compiling with: gcc110 -O1 small.c [531] % [531] % cat small.c int a, b; int main() { int c, d; L1: if (a) { __builtin_printf("%d", d); L2: goto L1; } if (b) { d = c; goto L2; } return 0; } [532] % [532] % cat compile.sh #!/bin/bash ulimit -s 32 echo "*** Compiling with: gcctk -O1 $1" gcctk -O1 $1 echo echo "*** Compiling with: gcc110 -O1 $1" gcc110 -O1 $1 [533] %