From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C477C385DC3A; Fri, 13 May 2022 16:49:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C477C385DC3A From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/105586] [11/12/13 Regression] -fcompare-debug failure (length) with -O2 -fno-if-conversion -mtune=power4 -fno-guess-branch-probability Date: Fri, 13 May 2022 16:49:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: compare-debug-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 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 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: Fri, 13 May 2022 16:49:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105586 --- Comment #2 from Segher Boessenkool --- We have +(debug_insn 11 10 81 2 (var_location:QI u8_1 (mem/c:QI (plus:DI (unspec:DI= [ + (symbol_ref:DI ("*.LANCHOR0") [flags 0x182]) + (reg:DI 2 2) + ] UNSPEC_TOCREL) + (const_int 3 [0x3])) [1 g+3 S1 A8])) "../105586.c":11:8 -1 + (nil)) (the first such unspec in the file), and sched1 does +;; 0--> b 0: i 11 loc [unspec[`*.LANCHOR0',%2] 47+0x3]=20=20=20 :nothing:GENERAL_REGS+0(0)FLOAT_REGS+0(0)CR_REGS+0(0)SPECIAL_REGS+0(0) with it. Things in debug_insns should not influence code generation.=