From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6BF843858289; Wed, 8 Mar 2023 13:56:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BF843858289 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678283763; bh=c8Ib2NgqL3t9WmmGYdTCWhmQ2jQLdDrDyJah3XafDzI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Z9kAm1lpA61JJPhM8wEmJTNdS4uB6N1c0iWv+cALyqsp6ycNNuLDhZq+4wGs5SZ7u s4UEl+sZx9rBnrp0DHWNwD665sGpISZ2kVTnp/Zj/25fp1XTVRw/YeQ7je94MfFOVp xOU1ip3f4F+46ThWcG6Sntw41pQTEkNc89vxKqNY= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109031] csmith: possible bad code with -O2 -fno-strict-aliasing Date: Wed, 08 Mar 2023 13:56:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: needs-bisection, needs-reduction, wrong-code 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: Message-ID: In-Reply-To: References: 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=3D109031 --- Comment #11 from David Binderman --- (In reply to Martin Li=C5=A1ka from comment #10) > What about: >=20 > /usr/bin/gcc -w -Werror=3Dimplicit bug892.c -o one.exe > && (./one.exe 1 | fgrep "checksum after hashing g_50 :" > 1)=20 > && /home/dcb36/gcc/results/bin/gcc -w -O2 -fno-strict-aliasing bug892.c= =20 > -o two.exe > && (./two.exe 1 | fgrep "checksum after hashing g_50 :" > 2)=20 >=20 > if test $? !=3D 0; then=20 > exit 1 >=20 > diff 1 2;=20 > if test $? =3D 0; then=20 > exit 1 > fi > exit 0 >=20 > ? Thanks for the idea, but no further forward ;-|. Getting to the diff is easy. Getting the return code of 1 from the diff out to the calling perl program converted to 0 is proving to be a challenge. $ diff 1 2 1c1 < ...checksum after hashing g_50 : 646CF84D --- > ...checksum after hashing g_50 : C21BF3F9 $ echo $? 1 $=