From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90C123858C52; Sat, 18 Mar 2023 12:42:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90C123858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679143366; bh=pVSsfK/naHdgMrkt9TUP3b2ILgqfokdJqQqdcuaK0d4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iEEsS9jPHKYj1P4LVFTMf9U3dE20MJCGErqGU0bNhpoJX+bHPYf9yFiG36axx81Ko v+4bgXNsMjaK8lumjK0A/lGGa3w3RjrSw7kuZZdiT/Q+AFZXQQ4DjT945s8olLmuF+ Ad0y2IhSh7ZXRCZVyD+OZXzDQxE31uz8D8ytfxe0= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109184] csmith: really old bug with -O3 Date: Sat, 18 Mar 2023 12:42:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: needs-bisection 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=3D109184 --- Comment #3 from David Binderman --- After checking the flags that move -O2 to -O3, flag -floop-interchange seems to be at fault. $ ~/gcc/results/bin/gcc -w -O2 -fno-strict-aliasing bug897.c $ ./a.out 1 > 1 $ ~/gcc/results/bin/gcc -w -O2 -floop-interchange -fno-strict-aliasing bug8= 97.c $./a.out 1 > 2 $ diff 1 2 | head 2038c2038 < ...checksum after hashing g_1731[i][j] : 351CD463 --- > ...checksum after hashing g_1731[i][j] : 7739D31E 2040c2040 < ...checksum after hashing g_1731[i][j] : 791FAA71 --- > ...checksum after hashing g_1731[i][j] : FEBF8F12=