https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104525
Bug ID: 104525 Summary: timeout on signed overflow at O0 fwrapv Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: guojiufu at gcc dot gnu.org Target Milestone: --- When checking the case in PR104521, a timeout occurs on the case at ppc64le. The timeout also occurs with -O0 -fwrapv (without -fwrapv, the signed overflow which would be a UB). This issue seems to exist for a long time (gcc6). > cat small.c char a, b, c; int main() { unsigned char d = 1; while (1) { if (c >= a) { for (c = 0; c != -4; c -= 3) { while (!d) b = 0; continue; } } d = ~a; if (!d) continue; return 0; } } > gcc -fwrapv -O0 small.c ; timeout -s 9 5 ./a.out Killed