public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108657] New: csmith: possible wrong checksum with -O3 and -ftrivial-auto-var-init=zero
@ 2023-02-03 13:59 dcb314 at hotmail dot com
  2023-02-03 16:27 ` [Bug c/108657] " dcb314 at hotmail dot com
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: dcb314 at hotmail dot com @ 2023-02-03 13:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108657
           Summary: csmith: possible wrong checksum with -O3 and
                    -ftrivial-auto-var-init=zero
           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 54402
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54402&action=edit
C source code

For the attached C code, derived from csmith output, I get:

$ ~/gcc/results/bin/gcc -w bug880.c
$ ./a.out
checksum = F3A34B53
$ ~/gcc/results/bin/gcc -w -O2 bug880.c
$ ./a.out
checksum = F3A34B53
$ ~/gcc/results/bin/gcc -w -O2 -ftrivial-auto-var-init=zero bug880.c
$ ./a.out
checksum = F3A34B53
$ ~/gcc/results/bin/gcc -w -O3 -ftrivial-auto-var-init=zero bug880.c
$ ./a.out
checksum = BCC02729
$ ~/gcc/results/bin/gcc -w -O3  bug880.c
$ ./a.out
checksum = F3A34B53
$ 

Also, the possible bug seems to have first occurred sometime before 20230103

$ ~/gcc/results.20230103.asan.ubsan/bin/gcc -w -O3 -ftrivial-auto-var-init=zero
bug880.c
$ ./a.out
checksum = BCC02729
$

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

end of thread, other threads:[~2023-02-27 10:17 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-03 13:59 [Bug c/108657] New: csmith: possible wrong checksum with -O3 and -ftrivial-auto-var-init=zero dcb314 at hotmail dot com
2023-02-03 16:27 ` [Bug c/108657] " dcb314 at hotmail dot com
2023-02-03 18:15 ` [Bug middle-end/108657] " pinskia at gcc dot gnu.org
2023-02-03 18:41 ` dcb314 at hotmail dot com
2023-02-03 18:47 ` pinskia at gcc dot gnu.org
2023-02-04 12:01 ` dcb314 at hotmail dot com
2023-02-04 12:17 ` dcb314 at hotmail dot com
2023-02-04 12:31 ` dcb314 at hotmail dot com
2023-02-06 13:37 ` dcb314 at hotmail dot com
2023-02-06 16:59 ` dcb314 at hotmail dot com
2023-02-06 17:32 ` dcb314 at hotmail dot com
2023-02-06 20:28 ` [Bug middle-end/108657] [13 Regression] " pinskia at gcc dot gnu.org
2023-02-07 18:01 ` mikpelinux at gmail dot com
2023-02-08  8:42 ` dcb314 at hotmail dot com
2023-02-14 14:53 ` dcb314 at hotmail dot com
2023-02-14 21:09 ` dcb314 at hotmail dot com
2023-02-15 18:22 ` jakub at gcc dot gnu.org
2023-02-15 18:29 ` jakub at gcc dot gnu.org
2023-02-15 18:43 ` jakub at gcc dot gnu.org
2023-02-15 18:48 ` pinskia at gcc dot gnu.org
2023-02-15 18:56 ` jakub at gcc dot gnu.org
2023-02-15 19:04 ` jakub at gcc dot gnu.org
2023-02-15 19:15 ` jakub at gcc dot gnu.org
2023-02-15 19:32 ` jakub at gcc dot gnu.org
2023-02-16 14:35 ` cvs-commit at gcc dot gnu.org
2023-02-27 10:17 ` rguenth 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).