From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C19723858D33; Thu, 9 Mar 2023 09:25:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C19723858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678353905; bh=Y105WC+p6SBhU6mgrAhK5ZU8J2GvxSe8CZIYNoOZwZo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bcMocmgfRfVzyyW/EF5m98esPRlyjOURqaweVsnpXjY69Rv1lBqC6gnhTk63XeTsr LBAmNT54a4Sg6ApWwWb3uiq0ZkIgqPY92roKBT8EXCuHL9mEtLVpIqeK1JZSUeepa+ SeVPtmVno+JoWyYyNJmEfQ8qDoMvVowAoJYgJn9Y= 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: Thu, 09 Mar 2023 09:25:04 +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: bug_status resolution 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 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |--- --- Comment #22 from David Binderman --- (In reply to Jakub Jelinek from comment #20) > trying to ensure the reduction doesn't introduce uninitialized var uses > which weren't there before=20 I was also thinking this myself, so I went back to the original test case I reported, before any reduction. This is what I found: $ for i in ~/gcc/results.202205*/bin/gcc; do echo $i; $i -w -ftrivial-auto-var-init=3Dzero -O2 -fno-strict-aliasing bug892.c && (./a.ou= t 1 | fgrep g_50); done /home/dcb36/gcc/results.20220501/bin/gcc ...checksum after hashing g_50 : 646CF84D /home/dcb36/gcc/results.20220508/bin/gcc ...checksum after hashing g_50 : 646CF84D /home/dcb36/gcc/results.20220515/bin/gcc ...checksum after hashing g_50 : C21BF3F9 $=20 So the original bug is still there and my reduction looks invalid ;-| Snapshots don't exist between 20220508 and 20220515. Is anyone else able to bisect that range ?=