public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108718] New: csmith: possible bad code with -O2
@ 2023-02-08 13:53 dcb314 at hotmail dot com
  2023-02-08 14:06 ` [Bug c/108718] " jakub at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: dcb314 at hotmail dot com @ 2023-02-08 13:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108718

            Bug ID: 108718
           Summary: csmith: possible bad code with -O2
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 54432
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54432&action=edit
C source code

The attached C code, produced by csmith, does this:

$ ../results/bin/gcc -w -O1 bug883.c && ./a.out
checksum = 7A94E377
$ ../results/bin/gcc -w -O2 bug883.c && ./a.out
checksum = 842F1622
$ 

The bug seems to exist since sometime before 20220703

$ ../results.20220703/bin/gcc -w -O2 bug883.c && ./a.out
checksum = 842F1622
$ 

I will have a go at a reduction.

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

end of thread, other threads:[~2023-02-16 12:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08 13:53 [Bug c/108718] New: csmith: possible bad code with -O2 dcb314 at hotmail dot com
2023-02-08 14:06 ` [Bug c/108718] " jakub at gcc dot gnu.org
2023-02-08 14:12 ` [Bug c/108718] [10/11/12/13 Regression] " jakub at gcc dot gnu.org
2023-02-08 17:06 ` pinskia at gcc dot gnu.org
2023-02-09 15:10 ` dcb314 at hotmail dot com
2023-02-09 20:12 ` jakub at gcc dot gnu.org
2023-02-10 10:19 ` rguenth at gcc dot gnu.org
2023-02-10 17:07 ` dcb314 at hotmail dot com
2023-02-15  8:17 ` dcb314 at hotmail dot com
2023-02-15 10:29 ` dcb314 at hotmail dot com
2023-02-15 10:39 ` marxin at gcc dot gnu.org
2023-02-15 17:00 ` dcb314 at hotmail dot com
2023-02-16 12:59 ` 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).