From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E279A3858C33; Mon, 15 Jan 2024 11:53:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E279A3858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705319621; bh=zMvo/3WNVAW4nbWee3oF5+ojnigXlQ6LYEfORkUA1vM=; h=From:To:Subject:Date:From; b=uiEyAs2Mc63r9wfXNmowSTXFpJ7WvMQaebq+CYHSIGqww3dW8o8yPveHhNWBEdsRC QjeYwI7LeiymNDRvINZBlAAwRosIDE8UC10jHRjRb4OIur5XMI677Bgyp+SVidyP9l UrcH43PXWS60SslXHI0ezrKhdhkqdehyUq4fBhVE= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113396] New: csmith: differences from -O2 to -O3 Date: Mon, 15 Jan 2024 11:53:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113396 Bug ID: 113396 Summary: csmith: differences from -O2 to -O3 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 57082 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57082&action=3Dedit C source code The attached Csmith generated code does this: foundBugs $ ~/gcc/results/bin/gcc -w bug998.c foundBugs $ valgrind -q ./a.out checksum =3D 77A231E6 foundBugs $ ~/gcc/results/bin/gcc -w -O2 bug998.c foundBugs $ valgrind -q ./a.out checksum =3D 77A231E6 foundBugs $ ~/gcc/results/bin/gcc -w -O3 bug998.c foundBugs $ valgrind -q ./a.out checksum =3D 130B5204 foundBugs $ ~/gcc/results/bin/gcc -w -O3 -fno-strict-aliasing -fno-loop-interchange bug998.c foundBugs $ valgrind -q ./a.out checksum =3D 130B5204 foundBugs $=