From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DC7553858418; Tue, 21 Dec 2021 12:01:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC7553858418 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/103788] New: [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -O1 Date: Tue, 21 Dec 2021 12:01:05 +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 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: Tue, 21 Dec 2021 12:01:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103788 Bug ID: 103788 Summary: [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -O1 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: --- gcc 12.0.0 20211219 snapshot (g:fcbf94a5be9e0c1ecad92da773a6632b86b7f70a) f= ails -fcompare-debug check when compiling the following testcase w/ -O1: int bar (void); int foo (int x) { int i; for (i =3D 0; i <=3D __INT_MAX__; ++i) x +=3D bar () < (x ? 2 : 1); return x; } % gcc-12.0.0 -O1 -fcompare-debug -c ohtuq2al.c gcc-12.0.0: error: ohtuq2al.c: '-fcompare-debug' failure (length) --- ohtuq2al.c.gkd 2021-12-21 18:49:49.840375354 +0700 +++ ohtuq2al.gk.c.gkd 2021-12-21 18:49:49.891375611 +0700 @@ -75,7 +75,7 @@ (expr_list:REG_UNUSED (reg:CC 17 flags) (nil)))) (jump_insn # 0 0 3 (set (pc) - (label_ref #)) "ohtuq2al.c":10:17# {jump} + (label_ref #)) "ohtuq2al.c":10:5# {jump} (nil) -> 3) (barrier # 0 0)=