From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8DF7F3858D33; Wed, 8 Mar 2023 16:45:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DF7F3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678293911; bh=J8wouX5Xr9vDU8oo487z2A5IHh1v4C+U77gaDjv+i7s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dpNqGcNruZCSwYV4yhj77WocR0K7Q8pXjKg9XO4tgdF/VSFfC/FSQ+Qwt5aNbnjdL FitTCHG4r50E/efqOswbDXV875A+qGvDvZbN3+zmFOoVmzAwJa2jC4+uiIbjBz3Ebg mu8HZmMyAOH8TSXrErWP/gc7hqMCWqcxTlqIeMfM= 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 16:45:11 +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 #17 from David Binderman --- (In reply to Martin Li=C5=A1ka from comment #16) > bash -x qwe.sh bug892.c That's a really useful tip. Thanks. I've debugged the script some more and now have: rm -f 1 2 one.exe two.exe /usr/bin/gcc -w -Werror=3Dimplicit bug892.c -o one.exe \ && (./one.exe 1 | fgrep "checksum after hashing g_50 :" > 1) if test $? !=3D 0; then exit 1 fi # So we have a checksum in file 1. /home/dcb36/gcc/results/bin/gcc -w -O2 -fno-strict-aliasing bug892.c -o two.exe \ && (./two.exe 1 | fgrep "checksum after hashing g_50 :" > 2) if test $? !=3D 0; then exit 1 fi # And we have a checksum in file 2. diff 1 2 if test $? =3D 0; then exit 1 fi exit 0 This script appears to be running nicely now. I will report back when it has finished or made significant progress.=