From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F4E13858C39; Sun, 16 Jan 2022 17:54:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F4E13858C39 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/104054] New: '-fcompare-debug' failure (length) w/ -Os -funroll-loops Date: Sun, 16 Jan 2022 17:54:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget attachments.created Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jan 2022 17:54:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104054 Bug ID: 104054 Summary: '-fcompare-debug' failure (length) w/ -Os -funroll-loops Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: x86_64-unknown-linux-gnu Created attachment 52207 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52207&action=3Dedit diff -u j2sfd9at.*.gkd gcc 12.0.0 20220109 snapshot (g:49d73c9fb644673323845efebfe6b3106e70af8a) f= ails -fcompare-debug check when compiling the following testcase w/ -Os -funroll-loops: short int i; int m; __int128 n; void foo (__int128 x) { int a =3D !!n; __int128 b =3D 1; if (a < x) m =3D 1; for (i =3D 0; i < 4; ++i) { b <<=3D a || n; n =3D b; } } % x86_64-unknown-linux-gnu-gcc-12.0.0 -Os -fcompare-debug -funroll-loops -c j2sfd9at.c x86_64-unknown-linux-gnu-gcc-12.0.0: error: j2sfd9at.c: '-fcompare-debug' failure (length) gkd diff attached.=