From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B78393858408; Wed, 28 Jun 2023 14:06:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B78393858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687961202; bh=VHH4x4qWAn0J85vgcS5CDIWYEj26+5fM41o2Uxwh7uw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GNY5PMRPrO4MOZrnAgZxc6rVIhipBvSQfSEOkhc7UMHWJ5TwJw9uvMCLvP+QeDznJ l3Pg8nJI9FgJEWFsfzdbfhxj5vVdr7dPCA6HbkGX0AWblTRMxBjGfCL8eWxM+xdxb7 6cupoOPdtC1qoX7SF0aXZ/vB8TcUJVpVbvssvba4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/110308] [14 Regression] ICE on audiofile-0.3.6: RTL: vartrack: Segmentation fault in mode_to_precision(machine_mode) Date: Wed, 28 Jun 2023 14:06:41 +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 X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: ptomsich 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=3D110308 --- Comment #15 from CVS Commits --- The master branch has been updated by Philipp Tomsich : https://gcc.gnu.org/g:893883f2f8f56984209c6ed210ee992ff71a14b0 commit r14-2165-g893883f2f8f56984209c6ed210ee992ff71a14b0 Author: Manolis Tsamis Date: Tue Jun 20 16:23:52 2023 +0200 cprop_hardreg: fix ORIGINAL_REGNO/REG_ATTRS/REG_POINTER handling Fixes: 6a2e8dcbbd4bab3 Propagation for the stack pointer in regcprop was enabled in 6a2e8dcbbd4bab3, but set ORIGINAL_REGNO/REG_ATTRS/REG_POINTER for stack_pointer_rtx which caused regression (e.g., PR 110313, PR 110308). This fix adds special handling for stack_pointer_rtx in the places where maybe_mode_change is called. This also adds an check in maybe_mode_change to return the stack pointer only when the requested mode matches the mode of stack_pointer_rtx. PR debug/110308 gcc/ChangeLog: * regcprop.cc (maybe_mode_change): Check stack_pointer_rtx mode. (maybe_copy_reg_attrs): New function. (find_oldest_value_reg): Use maybe_copy_reg_attrs. (copyprop_hardreg_forward_1): Ditto. gcc/testsuite/ChangeLog: * g++.dg/torture/pr110308.C: New test. Signed-off-by: Manolis Tsamis Signed-off-by: Philipp Tomsich =