public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/113727] New: csmith: differences from nothing to -O1
@ 2024-02-02 19:40 dcb314 at hotmail dot com
  2024-02-02 20:27 ` [Bug c/113727] " sjames at gcc dot gnu.org
                   ` (26 more replies)
  0 siblings, 27 replies; 28+ messages in thread
From: dcb314 at hotmail dot com @ 2024-02-02 19:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113727
           Summary: csmith: differences from nothing to -O1
           Product: gcc
           Version: 14.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 57298
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57298&action=edit
C source code

The attached C code seems to produce different answers
between no optimisation flags and -O1:

foundBugs $ ../results/bin/gcc -w bug1002.c
foundBugs $ valgrind -q ./a.out 1 > 0
foundBugs $ ../results/bin/gcc -w -O1 bug1002.c
foundBugs $ valgrind -q ./a.out 1 > 1
foundBugs $ diff 0 1 
469,478c469,478
< ...checksum after hashing g_994.f3 : 5F99C263
< ...checksum after hashing g_994.f4 : 6E61EEE1
< ...checksum after hashing g_994.f5 : 8A4973F3
< ...checksum after hashing g_994.f6 : 1A47F5E1
< ...checksum after hashing g_994.f7 : CD2C240E
< ...checksum after hashing g_994.f8 : 7E61A9F
< ...checksum after hashing g_1368 : 74B15A31
< ...checksum after hashing g_1659 : 322B1FCB
< ...checksum after hashing g_1720 : 65F2763C
< checksum = 65F2763C
---
> ...checksum after hashing g_994.f3 : 3D4A5D24
> ...checksum after hashing g_994.f4 : 23E1696C
> ...checksum after hashing g_994.f5 : B115BFA4
> ...checksum after hashing g_994.f6 : E3A4BBDA
> ...checksum after hashing g_994.f7 : D44B3E01
> ...checksum after hashing g_994.f8 : 656901A2
> ...checksum after hashing g_1368 : 3B45689
> ...checksum after hashing g_1659 : EBA715C1
> ...checksum after hashing g_1720 : BDD5FC31
> checksum = BDD5FC31

I have a reduction running. 

The bug first seems to occur sometime between dates 20231001 and 20231119. 
Git hashes are g:5f3da480e7541a9c and eaeaad3fcac4d7a3.

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

end of thread, other threads:[~2024-03-21  7:34 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 19:40 [Bug c/113727] New: csmith: differences from nothing to -O1 dcb314 at hotmail dot com
2024-02-02 20:27 ` [Bug c/113727] " sjames at gcc dot gnu.org
2024-02-02 20:40 ` dcb314 at hotmail dot com
2024-02-02 21:03 ` dcb314 at hotmail dot com
2024-02-02 21:15 ` dcb314 at hotmail dot com
2024-02-02 21:40 ` dcb314 at hotmail dot com
2024-02-02 21:47 ` dcb314 at hotmail dot com
2024-02-02 21:49 ` sjames at gcc dot gnu.org
2024-02-03 10:11 ` xry111 at gcc dot gnu.org
2024-02-03 10:15 ` xry111 at gcc dot gnu.org
2024-02-03 11:07 ` dcb314 at hotmail dot com
2024-02-03 11:08 ` dcb314 at hotmail dot com
2024-02-03 18:54 ` xry111 at gcc dot gnu.org
2024-02-04 19:42 ` [Bug c/113727] [14 Regression] " pinskia at gcc dot gnu.org
2024-03-15 15:01 ` [Bug tree-optimization/113727] " law at gcc dot gnu.org
2024-03-18  8:45 ` sjames at gcc dot gnu.org
2024-03-19  5:58 ` sjames at gcc dot gnu.org
2024-03-19  6:04 ` sjames at gcc dot gnu.org
2024-03-19  6:09 ` pinskia at gcc dot gnu.org
2024-03-19  6:24 ` pinskia at gcc dot gnu.org
2024-03-19  6:41 ` pinskia at gcc dot gnu.org
2024-03-19  6:47 ` pinskia at gcc dot gnu.org
2024-03-19  9:46 ` [Bug tree-optimization/113727] [14 Regression] csmith: differences from nothing to -O1 since r14-4612-g6decda1a35be57 rguenth at gcc dot gnu.org
2024-03-19 10:51 ` rguenth at gcc dot gnu.org
2024-03-19 11:22 ` rguenth at gcc dot gnu.org
2024-03-19 13:40 ` rguenth at gcc dot gnu.org
2024-03-21  7:33 ` cvs-commit at gcc dot gnu.org
2024-03-21  7:34 ` 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).