From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1B6A53858D35; Sat, 1 Jul 2023 17:34:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B6A53858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688232848; bh=LltiObYUtlkB1qH0BPkE6NVSU0TgILplVH6jYsNNrnQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qhnFPv9ttylpfuqI55PB/2ZK4WQ/yypdE9jpH2XRfY16AmDDbaCXkgnNcQ6Cl5BBI 5hfdOAm32NpJamRlpS5J/Z3XLxfOhclSmMXGQOHoF0PvVbX9KIdbf6FkXXWjTsJnaz DhMC/2Uvv2wn3Odbw6JS5zvyqAp6tgvOrHmiHWC8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110510] ggc infinite recursion Date: Sat, 01 Jul 2023 17:34:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: GC, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 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=3D110510 --- Comment #1 from Andrew Pinski --- It does not look like an infinite recursion but rather the chain of eh_landing_pad_d is not mentioned to the GC so it does not do an inline-tail call.=20 This might fix the issue: diff --git a/gcc/except.h b/gcc/except.h index 378a9e4cb77..087d0004c6d 100644 --- a/gcc/except.h +++ b/gcc/except.h @@ -66,7 +66,7 @@ enum eh_region_type /* A landing pad for a given exception region. Any transfer of control from the EH runtime to the function happens at a landing pad. */ -struct GTY(()) eh_landing_pad_d +struct GTY((chain_next(%h.next_lp))) eh_landing_pad_d { /* The linked list of all landing pads associated with the region. */ struct eh_landing_pad_d *next_lp;=