From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7BC14385802B; Tue, 30 Jan 2024 09:30:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BC14385802B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706607057; bh=Eu0aT/IKHERK8XbtlJFepsYdP9loKpr7JQBpdpl+LX0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gLPQDMeVrsPqvagR5NDQcelkRW1lYFg+xBKr1FRVDqLhVftglVJ92i6Z7S9DMNSEB ufyIK2H+XcYQOnF9Or0U8+nd5Foq/vyU36LGkHH9JPk6gzsBZWVXjCRigzozFIdrz8 zHRBfh5kTN4hO2ygHjAnqfUIUxKPQu3jB467uSgA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275 since r14-6290-g9f0f7d802482a8 Date: Tue, 30 Jan 2024 09:30:50 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113636 --- Comment #11 from GCC Commits --- The trunk branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:aeec7d87a28ac80c64ebfa88cef3dccee3ba8efc commit r14-8518-gaeec7d87a28ac80c64ebfa88cef3dccee3ba8efc Author: Richard Sandiford Date: Tue Jan 30 09:30:35 2024 +0000 aarch64: Handle debug references to removed registers [PR113636] In this PR, we entered early-ra with quite a bit of dead code. The code was duly removed (to avoid wasting registers), but there was a dangling reference in debug instructions, which caused an ICE later. Fixed by resetting a debug instruction if it references a register that is no longer needed by non-debug instructions. gcc/ PR target/113636 * config/aarch64/aarch64-early-ra.cc (early_ra::replace_regs): = Take the containing insn as an extra parameter. Reset debug instructions if they reference a register that is no longer used by real ins= ns. (early_ra::apply_allocation): Update calls accordingly. gcc/testsuite/ PR target/113636 * go.dg/pr113636.go: New test.=