From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 38A563858D39; Wed, 8 Feb 2023 14:12:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38A563858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675865567; bh=P76X/bkezxjMXedZlcMYHn5oYFfhDpwRPrytvYVQeZw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gVLtCFHO8ti3s6sn7xXKW3VczqfD2qxPA4ProuIsQblPeA5e0JzlyOC+1BBrApxTx klQpxMeQiFGV/dDeJaZ6jE1pevHlwwcbHOvPducQlidPdEZoVedzWUfmVRlqhnLqy2 eyxdRyGxQ7NsimNbwUtoKaMveifgUcd8gW17ki4s= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108718] [10/11/12/13 Regression] csmith: possible bad code with -O2 Date: Wed, 08 Feb 2023 14:12:47 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority short_desc target_milestone cc 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=3D108718 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Summary|csmith: possible bad code |[10/11/12/13 Regression] |with -O2 |csmith: possible bad code | |with -O2 Target Milestone|--- |10.5 CC| |rguenth at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Seems the testcase allows to be called with argument 1 and in that case it prints verbose output, which between r11-1351^ and r11-1351 at -O2 differs starting with: --- 1 2023-02-08 09:10:13.000000000 -0500 +++ 2 2023-02-08 09:10:22.000000000 -0500 @@ -48,1210 +48,1210 @@ index =3D [2][2] index =3D [2][3] ...checksum after hashing g_5[i][j].f4 : ADCB0EBF index =3D [2][4] -...checksum after hashing g_5[i][j].f4 : C953D56F +...checksum after hashing g_5[i][j].f4 : 367D9AB8 index =3D [2][5] -...checksum after hashing g_5[i][j].f4 : 37A7B1F1 +...checksum after hashing g_5[i][j].f4 : 7EFE68AE index =3D [2][6] -...checksum after hashing g_5[i][j].f4 : A0619D0A +...checksum after hashing g_5[i][j].f4 : 6C5E59F1 The only changes in optimized dump as well as in assembly are in main.=