[Bug tree-optimization/103231] [12 Regression] ICE (nondeterministic) on valid code at -O1 on x86_64-linux-gnu: Segmentation fault since r12-5014-g6b8b959675a3e14c
zhendong.su at inf dot ethz.ch
gcc-bugzilla@gcc.gnu.org
Sun Nov 14 15:37:35 GMT 2021
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] %
More information about the Gcc-bugs
mailing list