From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 98E953858C2C; Thu, 24 Mar 2022 07:38:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98E953858C2C From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/105041] New: '-fcompare-debug' failure w/ -mcpu=power6 -O2 -fharden-compares -frename-registers Date: Thu, 24 Mar 2022 07:38:46 +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: compare-debug-failure 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 keywords 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: Thu, 24 Mar 2022 07:38:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105041 Bug ID: 105041 Summary: '-fcompare-debug' failure w/ -mcpu=3Dpower6 -O2 -fharden-compares -frename-registers Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: compare-debug-failure Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: powerpc-*-linux-gnu Created attachment 52678 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52678&action=3Dedit gkd diff gcc 12.0.1 20220320 snapshot (g:6f30c4cd38b8385d62358065d795df590e752d6e) f= ails -fcompare-debug check when compiling the following testcase w/ -mcpu=3Dpowe= r6 -O2 -fcompare-debug -fharden-compares -frename-registers: double m; int n; unsigned int foo (unsigned int x, int y) { long long int a =3D y, b =3D !a; int c =3D 0; if (b !=3D x) while ((int) m =3D=3D a) { c =3D a; a =3D 0; x =3D 0; } n =3D b =3D y; return x + c; } % powerpc-e300c3-linux-gnu-gcc-12.0.1 -mcpu=3Dpower6 -O2 -fcompare-debug -fharden-compares -frename-registers -c ck9whkva.c powerpc-e300c3-linux-gnu-gcc-12.0.1: error: ck9whkva.c: '-fcompare-debug' failure gkd diff attached. I suppose it is really a duplicate of PR104771.=