public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/110053] New: csmith: problems with -O1 and -O2 in same file
@ 2023-05-31 9:39 dcb314 at hotmail dot com
2023-05-31 11:49 ` [Bug c/110053] " amonakov at gcc dot gnu.org
2023-05-31 23:04 ` [Bug tree-optimization/110053] " pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: dcb314 at hotmail dot com @ 2023-05-31 9:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110053
Bug ID: 110053
Summary: csmith: problems with -O1 and -O2 in same file
Product: gcc
Version: unknown
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 55222
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55222&action=edit
C source code
I think there are two bugs found by the same source code file:
foundBugs $ ../results/bin/gcc -w bug929.c
foundBugs $ ./a.out
checksum = D6B625E3
foundBugs $ ../results/bin/gcc -w -O1 bug929.c
foundBugs $ ./a.out
checksum = 3BB0D0B7
foundBugs $ ../results/bin/gcc -w -O2 bug929.c
foundBugs $ ./a.out
checksum = FBCD12E5
foundBugs $ ../results/bin/gcc -w -O2 -fno-strict-aliasing bug929.c
foundBugs $ ./a.out
checksum = FBCD12E5
foundBugs $ ../results/bin/gcc --version
gcc (794326a744006ffe) 14.0.0 20230530 (experimental)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/110053] csmith: problems with -O1 and -O2 in same file
2023-05-31 9:39 [Bug c/110053] New: csmith: problems with -O1 and -O2 in same file dcb314 at hotmail dot com
@ 2023-05-31 11:49 ` amonakov at gcc dot gnu.org
2023-05-31 23:04 ` [Bug tree-optimization/110053] " pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: amonakov at gcc dot gnu.org @ 2023-05-31 11:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110053
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amonakov at gcc dot gnu.org
--- Comment #1 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
It looks like the testcase may perform bit manipulation of floats. If any NaNs
are involved, results are unpredictable.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/110053] csmith: problems with -O1 and -O2 in same file
2023-05-31 9:39 [Bug c/110053] New: csmith: problems with -O1 and -O2 in same file dcb314 at hotmail dot com
2023-05-31 11:49 ` [Bug c/110053] " amonakov at gcc dot gnu.org
@ 2023-05-31 23:04 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-31 23:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110053
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |tree-optimization
Keywords| |wrong-code
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=110067
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe related to PR 110067 (which has a shorter testcase).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-31 23:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-31 9:39 [Bug c/110053] New: csmith: problems with -O1 and -O2 in same file dcb314 at hotmail dot com
2023-05-31 11:49 ` [Bug c/110053] " amonakov at gcc dot gnu.org
2023-05-31 23:04 ` [Bug tree-optimization/110053] " pinskia 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).