public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104525] New: timeout on signed overflow at O0 fwrapv
@ 2022-02-14  8:09 guojiufu at gcc dot gnu.org
  2022-02-14  8:29 ` [Bug target/104525] " guojiufu at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: guojiufu at gcc dot gnu.org @ 2022-02-14  8:09 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-14 10:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14  8:09 [Bug target/104525] New: timeout on signed overflow at O0 fwrapv guojiufu at gcc dot gnu.org
2022-02-14  8:29 ` [Bug target/104525] " guojiufu at gcc dot gnu.org
2022-02-14  8:33 ` pinskia at gcc dot gnu.org
2022-02-14 10:30 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).