From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52AA4385840C; Fri, 3 Mar 2023 15:34:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52AA4385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677857698; bh=NkKz3DQp5/S740CF7yHbgf7c+EgEiOuctd6K3QnC1lM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p9APeVchPa/6HpnKAVuKx/abeBMxSfFMVwLfOvM1cx8pooRmoEKP+iqxzAmuv9exU JlNRX+QZ8KfNggjMbExbnpwg21Fe/DAnM7i6BLdAOiSr2ExCwz35cgxTZ9IxCVecJM XKs+vffznbjc94mJhWLpGIglFH9Yl2exJHR7gv6Q= From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108887] [13 Regression] ICE in process_function_and_variable_attributes since r13-3601 Date: Fri, 03 Mar 2023 15:34:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.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=3D108887 --- Comment #3 from Jan Hubicka --- We don't really have way to mark nodes for removal. I am not 100% sure I understand what the code does, but removing random nodes from cgraph in hook invoked from mangling seems dangerous, since we invoke DECL_ASSEMBLER_NODE quite randomly. I think we may get around with only turning the node back to non-delcaratio= n by calling n->reset()? Honza=